[pulseaudio-discuss] Couldn't get stream from bluetooth headset

Shinnosuke Suzuki suzukisn at gmail.com
Wed Oct 25 13:26:36 UTC 2017


> That source name should be fine. If the source name is the only
> difference between working and not working, I'd like to know how
> exactly you're setting the name. Is it possible that the name string
> contains a space or other unexpected characters?

I checked the string which I use in this function, but the string is not contained space or 
another characters.
I intend to use one bluetooth headset at the same time, so I use a parameter to NULL.
Thank you for your help.

Best Regards,
Shinnosuke Suzuki

> 2017/10/24 21:59、Tanu Kaskinen <tanuk at iki.fi>のメール:
> 
> On Mon, 2017-10-23 at 20:28 +0900, Shinnosuke Suzuki wrote:
>> I set the second parameter of pa_stream_connect_record with NULL.
>> I could get PA_STREAM READY in the stream callback!
>> 
>> OK
>> pa_stream_connect_record(s, NULL, NULL, 0)
>> 
>> NG
>> pa_stream_connect_record(s, source, NULL, 0)
>>  (source : bluez_source.00_14_BE_8A_7B_FE)
>> 
>> I got a problem, but I can't understand mechanism.
>> I checked the pactl like this:
>> root at OpenWrt:/opt/ipkt/lib# pactl info list
>> Server String: /var/run/pulse/native
>> Library Protocol Version: 30
>> Server Protocol Version: 30
>> Is Local: yes
>> Client Index: 3
>> Tile Size: 4056
>> User Name: pulse
>> Host Name: OpenWrt
>> Server Name: pulseaudio
>> Server Version: 6.0-dirty
>> Default Sample Specification: s16be 2ch 44100Hz
>> Default Channel Map: front-left,front-right
>> Default Sink: bluez_sink.00_14_BE_8A_7B_FE
>> Default Source: bluez_source.00_14_BE_8A_7B_FE
>> Cookie: e5ae:1788
>> 
>> I used the second parameter of pa_stream_connect_record as a
>> bluez_source.00_14_BE_8A_7B_FE.
>> This is a same value of default source.
>> What is the difference on this?
> 
> That source name should be fine. If the source name is the only
> difference between working and not working, I'd like to know how
> exactly you're setting the name. Is it possible that the name string
> contains a space or other unexpected characters?
> 
> -- 
> Tanu
> 
> https://www.patreon.com/tanuk



More information about the pulseaudio-discuss mailing list