Skip to content

Add bluetooth sco-sink and sco-source nodes

Julian Bouzas requested to merge github/fork/julianbouzas/work-bluetooth-sco into work

This PR adds a first version of both sco-sink and sco-source nodes to handle both HSP/HFP bluetooth profiles.

I only tested these nodes with my HFP bluetooth headset and an old version of the work branch using 2 custom gstreamer elements. Both nodes mostly work with that old branch, however, there are still audio issues that don't seem to be related to the nodes implementation (the a2dp nodes have the same problem).

The purpose of this MR is mostly to avoid updating some of my already implemented bluetooth logic.

Here is the branch I used to test them: https://github.com/julianbouzas/pipewire/commits/endpoint

Both elements can be tested as follows:

gst-launch-1.0 audiotestsrc ! pwaudiosink path=<sco-sink-id>
gst-launch-1.0 pwaudiosrc path=<sco-source-id> ! wavenc ! filesink location=out.wav

Merge request reports