Re: accessing default pcm from C

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

 



daggs wrote:
>> daggs wrote:
>>> I'm writing a C program that needs to know what is the session's default card
>>> and device (either default or the one in ~/.asoundrc), how can retrieve that?
>>
>> The name of the default device is "default".
>
> not quite what I've asked about but looking at the header fiels alsa lib has, I
> see in /usr/include/alsa/conf.h

That header file is automatically included by asoundlib.h.

> a func called: snd_config_load.

That function is automatically called by snd_pcm_open().

The default device is indeed part of that configuration, but you just have to
give the "default" name to snd_pcm_open().


Regards,
Clemens

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user




[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux