Sample format of default source

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

 



Hi,

Lennart Poettering wrote:
> On Mon, 16.03.09 20:14, Magnus Hjorth (magnus.hjorth at home.se) wrote:
>   
>> 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").
>>     
> Try passing "@DEFAULT_SOURCE@" as sink name in pa_context_get_source_info_by_name().
>   
It seems that this doesn't work in the latest git version. The reason is 
this check in protocol-native.c, function command_get_info:

    CHECK_VALIDITY(c->pstream, !name || pa_namereg_is_valid_name(name), 
tag, PA_ERR_INVALID);

pa_namereg_is_valid_name doesn't seem to like the @ character.

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