tl;dr: it appears that macOS may allow trailing spaces in audio device names. 🤦♂ These are inadvertently stripped in this action, breaking the ability to select these ill-named devices.
Note that currentOutput has the correct string with trailing spaces, but that item in outputs does not. The actual device is a Matrix Audio USB audio interface, which IIRC should just be using the USB audio class driver. System Information also clearly shows the trailing spaces in its audio device list:
USB Sound Device :
where no other device has spaces between the name and the colon, e.g.:
tl;dr: it appears that macOS may allow trailing spaces in audio device names. 🤦♂ These are inadvertently stripped in this action, breaking the ability to select these ill-named devices.
Example:
Note that
currentOutput
has the correct string with trailing spaces, but that item inoutputs
does not. The actual device is a Matrix Audio USB audio interface, which IIRC should just be using the USB audio class driver. System Information also clearly shows the trailing spaces in its audio device list:where no other device has spaces between the name and the colon, e.g.: