thestk / rtaudio

A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO, and WASAPI) operating systems.
Other
1.49k stars 318 forks source link

Fix Usage of jack_get_ports API #344

Closed SamRH closed 2 years ago

SamRH commented 2 years ago

As per https://jackaudio.org/api/group__PortSearching.html jack_get_ports accepts a regular expression for the port name. Kind of weird but whatever. Unfortunately current usage of the jack_get_ports API causes issues when port names have certain characters in them - and this is quite common to encounter on newer Linux distributions like Fedora 35 and RHEL 8 where PipeWire is the default and jack audio API is default available through their PipeWire config.