mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
661d951af8
1. If AudioUnitRender return kAudioUnitErr_CannotDoInCurrentContext within a input-only stream, the input-only stream will keep feed silence data into the buffer instead of reporting the error. With this change, the error will be rendered as the returned value of the data callback to the underlying CoreAudio framework. 2. By merging the render_input into audiounit_input_callback and adjust the timing to call reinit_async, now the reinit_async is called at the line that is out of the main logic for feeding buffer data. In the scope of the main logic, there will be a critical section created by locking a Rust mutex within AudioUnitStream in the later mutex replacement. Without moving the reinit_async, which borrows AudioUnitStream as a mutable, out of the critical section, there will be a borrowing-twice issue. Differential Revision: https://phabricator.services.mozilla.com/D34064 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
cubeb-coreaudio-rs | ||
cubeb-pulse-rs | ||
gtest | ||
include | ||
src | ||
AUTHORS | ||
disable-assert.patch | ||
LICENSE | ||
moz.build | ||
moz.yaml | ||
README.md | ||
update.sh |