Couldn't get stream from bluetooth headset

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

 



Dear tanu,

>Are the two pa_context pointers different? You should have just one
>context.

Yes, I called function like this in the stream callback: (s : pa_stream *s)
switch(pa_stream_get_state){
 case PA_STREAM_FAILED:
   printf("%s\n, pa_strerror(pa_context_errno(s));
   printf("%s\n, pa_strerror(pa_context_errno(pa_stream_get_context(s))));
I check the argument, first one is wrong argument, so I got error "Invalid
argument" in second printf().

So, I have additional question.
I could call pa_stream_new, pa_stream_connect_record and
pa_stream_connect_playback without error in context state callback with
PA_CONTEXT_READY.
I think I can call these function correctly. I can't understand this
process is "Invalid argument".
Is something coming up?

Best Regards,
Shinnosuke Suzuki
2017-10-15 18:07 GMT+09:00 Tanu Kaskinen <tanuk at iki.fi>:

> On Sun, 2017-10-15 at 17:02 +0900, Shinnosuke Suzuki wrote:
> > Dear tanu,
> >
> > > There can be only one error at a time, but here you list two errors. In
> > > what situations these errors happen?
> >
> > I got two errors at the same point in the stream callback with a state
> > PA_STREAM_FAILED.
> > I got the errors by two ways, one is to call only pa_context_errno,
> > the other is to call pa_context_errno(pa_stream_get_context()).
>
> Are the two pa_context pointers different? You should have just one
> context.
>
> --
> Tanu
>
> https://www.patreon.com/tanuk
>



-- 
--
Shinnosuke Suzuki
E-mail : suzukisn at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20171018/fcab5364/attachment.html>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux