Skip to content

cmaj fails to initialize audio on macOS when empty Aggregate or Multi-Output Device exists #121

Description

@dap

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:

  1. Download or build the latest cmaj tool.
  2. Run cmaj create AnnoyingBeep
  3. Run cmaj play AnnoyingBeep/AnnoyingBeep.cmajorpatch and observe that the generic UI is displayed and sound is heard as expected.
  4. 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.
  5. Run cmaj play AnnoyingBeep/AnnoyingBeep.cmajorpatch and 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions