DescriptionFix audio capture buffer handling on Android.
The buffer handling in OpenSL is:
1. enqueue the buffers;
2. wait for a callback;
3. inside the callback, read out the PCM data of current buffer and enqueue one buffer (it's the same buffer in this case).
4. go to step 2.
Current implementation has several problems:
a. When buffer #1 (not buffer #0) is read first time, it doesn't have PCM data recorded by the device.
b. There are 2 buffer worth of time delay.
c. There are racing condtion since both OpenSL and AudioInputController hold the same buffer.
BUG=243506
R=xians@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202581
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|