[pulseaudio-discuss] Sample format of default source
magnus.hjorth at home.se
Mon Mar 16 12:14:27 PDT 2009
I'm trying to find a way in libpulse to query the sample format of the
default source. Passing NULL to pa_context_get_source_info_by_name does
not seem to work ("invalid argument").
The only way I can think of is to create a stream, connect it to the
default source, call pa_stream_get_device_name (or index), and pass that
name to pa_context_get_source_info_by_name. But that is a quite ugly
solution. Any other way to get the default source's name?
More information about the pulseaudio-discuss