Repository navigation
fix(audio): start the macOS system-audio tap after the microphone - #1374
EtienneLescot merged 1 commit into
Conversation
On an idle Mac the Core Audio tap's aggregate device does not run until another app plays a sound. A picker take started the tap before its SCStream, and while the tap sat stalled ScreenCaptureKit delivered no microphone audio either, so the microphone was silent until the first sound (getopenscreen#1173). A take with a microphone now starts its tap on the first microphone buffer, with a one-second fallback for a microphone that never delivers; a take without one starts it right after the stream. The tap is owned by the sample queue, so its start and stop cannot race.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
This should be ready for review @EtienneLescot |
|
Thanks a lot @marcgabe15, this is a clean fix for a long-standing one. Merged! |
On an idle Mac the Core Audio tap's aggregate device does not run until another app plays a sound. A picker take started the tap before its SCStream, and while the tap sat stalled ScreenCaptureKit delivered no microphone audio either, so the microphone was silent until the first sound (#1173).
A take with a microphone now starts its tap on the first microphone buffer, with a one-second fallback for a microphone that never delivers; a take without one starts it right after the stream. The tap is owned by the sample queue, so its start and stop cannot race.
Related issue
Fixes #1173
Type of change
Release impact
Desktop impact
Screenshots / video
Testing
Summary by CodeRabbit