Sample format of default source

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

 



Hi,

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?

Regards,
Magnus




[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux