[alsa-devel] Opening a PCM device in shared mode

Clemens Ladisch clemens at ladisch.de
Thu Nov 24 18:31:54 CET 2011


Sayem Ahmed wrote:
>Also, when I try to run the example program on different rate (i.e., 
>rate 8000, channel 1) it throws an error saying format doesn't match.

The "default" device for your hardware should have
the plug plugin on top of the dmix plugin.

>Actually the whole point of my exploration is this - I want to display
>a 
>list of available audio cards/devices in my system to my application 
>user who will then select the input and output audio card to 
>record/playback audio data accordingly.

This is the job of the desktop environment.
Is there a reason why your application needs to
duplicate this?


Regards,
Clemens



More information about the Alsa-devel mailing list