]> Repos - portaudio/commit
JACK PipeWire fixes (escape regex chars) (#504)
authorBe <be@mixxx.org>
Fri, 19 Mar 2021 17:51:31 +0000 (12:51 -0500)
committerGitHub <noreply@github.com>
Fri, 19 Mar 2021 17:51:31 +0000 (10:51 -0700)
commiteec7bb739771381ab698a6a611d933bdd72cbd8f
treefaad594be94b01614629d098ffa7bc498a626baf
parent3f7bee79a65327d2e0965e8a74299723ed6f072d
JACK PipeWire fixes (escape regex chars) (#504)

This patch fixes a problem caused by special regex characters
appearing in the device names when using the Jack interface to PipeWire.

It is uncommon for JACK ports to have any characters that need to
be escaped in a regex. jackd simply calls the audio interface
"system". However PipeWire uses the device name from ALSA for the
JACK port names. If this contains any special regex characters,
BuildDeviceList would find the device but determine it has 0
input channels and 0 output channels. In my case, I have an RME
Babyface Pro which puts its serial number in parentheses:

$ aplay -l
card 0: Pro70785713 [Babyface Pro (70785713)], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
src/hostapi/jack/pa_jack.c