Skip to content

fix(coreaudio): aggregate-device uuid collision + auto start to true#1198

Open
umerhd wants to merge 2 commits intoRustAudio:masterfrom
umerhd:fix/coreaudio-loopback
Open

fix(coreaudio): aggregate-device uuid collision + auto start to true#1198
umerhd wants to merge 2 commits intoRustAudio:masterfrom
umerhd:fix/coreaudio-loopback

Conversation

@umerhd
Copy link
Copy Markdown

@umerhd umerhd commented May 11, 2026

Two independent bugs in macOS LoopbackDevice, one commit each.

  1. The aggregate-device UID was a hardcoded string literal, so concurrent LoopbackDevice instances collide on the same identity, and a crash before Drop leaves a stale registration that blocks the next launch. Suffix the UID with PID and a per-process atomic counter.
  2. kAudioAggregateDeviceTapAutoStartKey was set to false, so the sub-tap is not engaged when the aggregate device opens. The input stream looks live (valid sample rate, valid timestamps) but every buffer is silence. Flip to true.

@umerhd umerhd changed the title Fix/coreaudio loopback fix(coreaudio): aggregate-device uuid collision + auto start to true May 11, 2026
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.

1 participant