gavv / webrtc-cli

WebRTC command-line peer.
MIT License
225 stars 24 forks source link

Possible to add Jack Audio Toolkit api ? #7

Open remixmabix opened 4 years ago

remixmabix commented 4 years ago

Hello, is it possible to add Jack Audio Connection Toolkit API to this project ?

https://jackaudio.org/api/

Thanks.

gavv commented 3 years ago

Hi, sorry for late reply.

There is no explicit support for jack currently, but it's technically possible to implement it. PulseAudio stuff is isolated in two structs, PulsePlayer and PulseRecorder. We could hide them behind interfaces and implement JackPlayer and JackRecorder. It seems that Go bindings for JACK are available: https://github.com/xthexder/go-jack

As a workaround, you can bridge JACK through PulseAudio. See this discussion for details.