Couldn't get stream from bluetooth headset

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

 



In addition to that, I got message on dmesg when I execute program:

[329517.380000] input: 00:14:BE:8A:7B:FE as /devices/virtual/input/input3
[329521.980000] Bluetooth: hci0 SCO packet for unknown connection handle 65
[329522.000000] Bluetooth: hci0 SCO packet for unknown connection handle 65
[329522.020000] Bluetooth: hci0 SCO packet for unknown connection handle 65

So Pulseaudio seems to start SCO connection.

Best Regards,
Shinnosuke Suzuki
2017-10-18 17:29 GMT+09:00 Shinnosuke Suzuki <suzukisn at gmail.com>:

> 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
>



-- 
--
Shinnosuke Suzuki
E-mail : suzukisn at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20171020/896e70c3/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