gecko-dev/media/libcubeb
Chun-Min Chang 661d951af8 Bug 1530715 - P31: Merge render_input into audiounit_input_callback. r=padenot
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
2019-07-09 19:57:05 +00:00
..
cubeb-coreaudio-rs Bug 1530715 - P31: Merge render_input into audiounit_input_callback. r=padenot 2019-07-09 19:57:05 +00:00
cubeb-pulse-rs Bug 1518106 - Update cubeb-pulse-rs from upstream to 17c1629. r=kinetik 2019-01-23 19:37:18 +00:00
gtest Bug 1318091 - Disable failing android gtests; r=bc 2019-04-08 20:58:21 +00:00
include Bug 1531833 - Update libcubeb to 241e3c (and rebase an in-tree patch). r=kinetik 2019-04-16 15:44:47 +00:00
src Bug 1530715 - P3: Build cubeb-coreaudio-rs in libcubeb. r=kinetik 2019-07-09 19:56:58 +00:00
AUTHORS
disable-assert.patch
LICENSE
moz.build
moz.yaml Bug 1561945 - P2: Update cubeb from upstream to 98a1c8e. r=achronop 2019-06-30 23:36:38 +00:00
README.md
update.sh Bug 1561945 - P1: Copy sunaudio backend to cubeb. r=achronop 2019-06-27 16:59:00 +00:00

Build Status Build status

See INSTALL.md for build instructions.

Licensed under an ISC-style license. See LICENSE for details.