Re: [Alsa-user] accessing default pcm from C
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_15utm_medium=emailutm_campaign=VA_SF ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] accessing default pcm from C
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. 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_15utm_medium=emailutm_campaign=VA_SF ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] accessing default pcm from C
Sent: Monday, April 06, 2015 at 2:37 PM From: Clemens Ladisch cladi...@googlemail.com To: daggs da...@gmx.com, alsa-user@lists.sourceforge.net Subject: Re: [Alsa-user] accessing default pcm from C 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. Regards, Clemens not quite what I've asked about but looking at the header fiels alsa lib has, I see in /usr/include/alsa/conf.h a func called: snd_config_load. am I right in assuming that if I call it, I'll have the session's card and device in the config struct? even if it is default? -- 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_15utm_medium=emailutm_campaign=VA_SF ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user