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@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
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to