[pulseaudio-discuss] Sample format of default source

Magnus Hjorth magnus.hjorth at home.se
Sat Mar 21 15:17:17 PDT 2009


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



More information about the pulseaudio-discuss mailing list