Question about getting the name of devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to patch the alsasrc&alsasink gstreamer plugins to be able to 
show nice names in user interfaces.

Given a card number, using snd_card_get_name gets me what I want easily. 
Unfortunately, that's not what I have available : I just have a 
snd_pcm_t*, opened on a char* which may look like "hw:1,0".

I know that I can snd_ctl_open a snd_ctl_t* with "hw:1", then get a 
snd_ctl_card_info_t*, on which I can call snd_ctl_card_info_get_card, to 
finally be able to call snd_card_get_name (sic).

The problem with this approach (well, apart from the fact that it is 
overly complex), is that snd_ctl_open fails if something like "hw:1,0" 
is given to it.

Is there a sane and simple way to obtain the name of a card from the 
data I have ?

JP

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux