8000 Core Audio: Fix bug in which callback is never triggered when hardware device exceeds MA_MAX_CHANNELS by ideoforms · Pull Request #1174 · mackron/miniaudio · GitHub
[go: up one dir, main page]

Skip to content

Core Audio: Fix bug in which callback is never triggered when hardware device exceeds MA_MAX_CHANNELS - #1174

Merged
mackron merged 1 commit into
mackron:dev-0.12from
ideoforms:dev-0.12-coreaudio-max-channels
Oct 21, 2026
Merged

mackron merged 1 commit into
mackron:dev-0.12from
ideoforms:dev-0.12-coreaudio-max-channels

Conversation

@ideoforms
Copy link
Copy Markdown

I am working on Core Audio, using hardware devices with lots of output channels (512).

If the hardware device exceeds MA_MAX_CHANNELS, I found that the audio callback was never fired, because the CoreAudio audio unit config did not match the (clamped) internalChannels.

This PR clamps CoreAudio's channel count to MA_MAX_CHANNELS. Verified on a MacBook Pro 2025 running macOS 26.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0