Bluetooth HSP handling on pulseaudio

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

 



On Sat, 2017-06-24 at 15:19 +0900, Shinnosuke Suzuki wrote:
> Hi all,
> 
> Iâ??m a new to pulseaudio development.
> I would like to write program which handle voice packet and some Bluetooth HSP event (RING,CKPD etc) from/to bluetooth headset.
> The pulseaudio 6.0 support HSP with bluez5, so I think this can be done.
> I read programming documentation, and I think the program needs asynchronous API not the simple API.
> But I couldnâ??t find any information on handling bluetooth HSP event and voice packet.
> 
> I there any manual or sample code on this?

>From an application's point of view "HSP audio packet handling" is done
just like with any other audio device. PulseAudio doesn't have any
special Bluetooth API, you just play and record audio using the normal
stream API. A new sink and source will be created for the headset when
it's connected.

RING and CKPD are ignored by PulseAudio, so you can't currently get
notifications about those, unfortunately.

-- 
Tanu

https://www.patreon.com/tanuk


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

  Powered by Linux