* Device enumeration
@ 2006-06-09 6:36 Lee Revell
0 siblings, 0 replies; 2+ messages in thread
From: Lee Revell @ 2006-06-09 6:36 UTC (permalink / raw)
To: alsa-devel
In order for apps to support ALSA properly there NEEDS to be a proper
device enumeration API! I was just looking at the OpenWengo site:
http://www.openwengo.org/index.php/openwengo/public/homePage/news?payload[newsId]=0
and it seems that their ALSA device selector only lists hw devices. IOW
it's no improvement over OSS.
Will this be fixed soon? I cannot see how we can ever expect apps to
support ALSA properly without it. There's currently a perception that
apps must be modified to "support dmix" when all that is really needed
is to have a device enumeration that will list the default device.
It cannot be a coincidence that 99% of the apps that try to support ALSA
get it wrong.
Lee
^ permalink raw reply [flat|nested] 2+ messages in thread
* Device enumeration
@ 2013-06-10 9:05 Robert Billing
0 siblings, 0 replies; 2+ messages in thread
From: Robert Billing @ 2013-06-10 9:05 UTC (permalink / raw)
To: alsa-devel
I am currently developing a package to play theatrical sound effects,
which has two play channels that I want to be able to attach to two
different ALSA devices. To allow the users, who are theatre directors
and are *not* technical to do this I am trying to provide a drop-down
list of play devices. I can get the raw devices by parsing either the
output from aplay -L, or from /proc/asound. The problem comes with
devices defined in .asoundrc. I have this in .asoundrc on the
development system:
pcm.speakers {
type pulse
device alsa_output.pci-0000_02_06.0.analog-stereo
}
ctl.speakers {
type pulse
device alsa_output.pci-0000_02_06.0.analog-stereo
}
pcm.cans {
type pulse
device alsa_output.pci-0000_00_1f.5.analog-stereo
}
ctl.cans {
type pulse
device alsa_output.pci-0000_00_1f.5.analog-stereo
}
This works and it is possible to play to the devices "cans" or
"speakers" to get output on headphones and speakers respectively, but
these names don't appear in the output from aplay.
What I need is some clean way of getting a list of the aliases. This
package will have to be capable of being installed on any Linux system
without needing to edit configuration files manually. However if some
tool or some part of the installation process has edited a configuration
file I want the aliases to appear in my list of devices.
What is the right way to do this?
--
Robert Billing,
Phone/fax +44 (0) 1344-772849
bob@tnglwood.demon.co.uk
Tanglewood,
64, Pinehill Road,
Crowthorne,
Berks, RG45 7JR
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-10 9:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-09 6:36 Device enumeration Lee Revell
-- strict thread matches above, loose matches on Subject: below --
2013-06-10 9:05 Robert Billing
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.