cmajor
cmajor copied to clipboard
cmaj fails to initialize audio on macOS when empty Aggregate or Multi-Output Device exists
Operating System: macOS 15.7.2 (24G325) Architecture: arm64 Cmajor version: 1.0.2944
Issue summary:
cmaj fails to initialize audio when an Aggregate or Multi-Output Device exists and has no member devices (either because they have been disconnected or because none were selected at configuration time). This use of aggregate devices is a somewhat common configuration in recording studios. This issue was uncovered after disconnecting my laptop from an aggregated set of Lynx devices and finding that cmaj ran but did not produce audio output.
Steps to reproduce:
- Download or build the latest
cmajtool. - Run
cmaj create AnnoyingBeep - Run
cmaj play AnnoyingBeep/AnnoyingBeep.cmajorpatchand observe that the generic UI is displayed and sound is heard as expected. - Open Audio MIDI Setup, view the Audio Devices window, and create a new Aggregate Device or Multi-Output Device and ensure that no member devices are selected.
- Run
cmaj play AnnoyingBeep/AnnoyingBeep.cmajorpatchand observe that the generic UI is displayed, however no sound is heard and the following error message is displayed in the terminal:
Failed to open audio device: RtApiCore::probeDeviceInfo: system error (CoreAudio unknown error) getting sample rate info.