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

Shinnosuke Suzuki suzukisn at gmail.com
Thu Oct 12 12:13:10 UTC 2017


Dear Tanu,

Thank you for advice.

I didn't resolve my issue, but I got cause of error in stream callback in
the
PA_STREAM_FAILED state.
 pa_context_errno : Access denied
 pa_context_errno(pa_stream_get_context) : Invalid argument
I got PA_STREAM_FAILED after PA_STREAM_CREATING in the stream callback.

Best Regards,
Shinnosuke Suzuki
Date: Wed, 11 Oct 2017 17:22:23 +0300

> From: Tanu Kaskinen <tanuk at iki.fi>
> To: General PulseAudio Discussion
>         <pulseaudio-discuss at lists.freedesktop.org>
> Subject: Re: [pulseaudio-discuss] Couldn't get stream from bluetooth
>         headset
> Message-ID: <1507731743.7670.9.camel at iki.fi>
> Content-Type: text/plain; charset="UTF-8"
>
> On Wed, 2017-10-11 at 16:49 +0900, Shinnosuke Suzuki wrote:
> > Hi all,
> >
> > I'm developing a phone app in OpenWrt with pulseaudio.
> >
> > I couldn't get stream from bluetooth headset using asynchronous API.
> > I got PA_CONTEXT_READY with state callback, so I call
> > pa_stream_connect_record/pa_stream_connect_playback with bluetooth
> > headset sink/source.
> > I couldn't error with this function, but I got PA_STREAM_FAILED in the
> each
> > of
> > the stream callbacks.
> >
> > I got the voice data with pamon command with bluetoooth headset.
> > So I think I can connect bluetooth headset correctly.
> >
> > Is there any clue to get cause of error PA_STREAM_FAILED?
>
> In the stream state callback, use pa_context_errno() to get the error
> code (and then you can use pa_strerror() to convert the error code to a
> string). Hopefully the error code will provide some hint. There were no
> hints in the server log.
>
> > I attached the pulseaudio log when I get to execute my program.
> > It seems that source/sink for bluetooth headset is suspending.
>
> It's normal that the headset sink and source are suspending if there
> are no streams connected to them.
>
> --
> Tanu
>
> https://www.patreon.com/tanuk
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20171012/7fa9ff35/attachment.html>


More information about the pulseaudio-discuss mailing list