41f19d8e9471945b358c9ae1dffda60f195d9f5b |
|
13-Feb-2018 |
Phil Burk <philburk@google.com> |
aaudio: convert mono output to stereo MMAP hardware streams are often stereo. But apps often want to output a mono stream. Since converting from mono to stereo is easy, we can go ahead and open a stereo hardware stream and then just convert the apps mono data to stereo for the HW. Add getDeviceChannelCount(). Test: adb shell write_sine_callback -pl -s10 -c1 -m3 Test: adb shell write_sine_callback -pl -s10 -c1 -m3 -x Change-Id: I444a38c6f5cd32d1d6113f16aacec68285a1bc82
/frameworks/av/media/libaaudio/src/client/AudioStreamInternalCapture.cpp
|
134f197bf7e2785ed9de336dc8e22e870c2ba6bd |
|
08-Dec-2017 |
Phil Burk <philburk@google.com> |
aaudio: prevent stop/close from a callback Detect whether AAudioStream_requestStop() is being called from a data or error callback and return error. Also for start(), pause(), flush() and close(). Honor AAUDIO_CALLBACK_RESULT_STOP in Legacy callback. Bug: 65560631 Bug: 62943389 Bug: 63096718 Test: test_various.cpp callback_blocker_none and callback_blocker_lowlat Change-Id: I29a685cd42910f70d16e23db0f9ec00b72451cfc
/frameworks/av/media/libaaudio/src/client/AudioStreamInternalCapture.cpp
|
2329638e097622653cb2c4acc145b996e317a38b |
|
21-Nov-2017 |
Phil Burk <philburk@google.com> |
aaudio: use xruns detected in the service The service knows when an actual xrun occurs so we pass that value to the client. Bug: 38512417 Test: write_sine_callback -pl -n1 -s20 -c2 -u Change-Id: I9e5ff1edd2e9378957309280162d7cda855f5adb
/frameworks/av/media/libaaudio/src/client/AudioStreamInternalCapture.cpp
|
fbf031e8f197c916ae9c399f42926494ebdeb497 |
|
13-Oct-2017 |
Phil Burk <philburk@google.com> |
aaudio: cleanup logs and comments This CL should not change any code behavior except for log text. Mostly it removes redundant class names from the log. Test: CTS nativemedia/aaudio Change-Id: I6a6d01da080f536d5345f2b0deb32e92ed1e3d47
/frameworks/av/media/libaaudio/src/client/AudioStreamInternalCapture.cpp
|
bcc3674648bc6f554d89a2a5d7721ed41c53f83b |
|
01-Sep-2017 |
Phil Burk <philburk@google.com> |
aaudio: fix timestamps and underruns Start the client after we get valid timing data from the server. That can take a while because of the long cold start times. The client is synced with the current position of the service. Now the client can start clean with no underruns. Bug: 63918065 Test: test_timestamps.cpp Change-Id: I5d01eb844e4b14cd5477d56ea1dd9e309abc1c52
/frameworks/av/media/libaaudio/src/client/AudioStreamInternalCapture.cpp
|
fd34a9310659aa53e9e10d6826651577a75f6447 |
|
19-Jul-2017 |
Phil Burk <philburk@google.com> |
aaudio: reduce glitching by improving sleep timing ALways sleep a minimum time to avoid busy wait in real-time thread. Account for wakeup jitter in threads on the other side of a FIFO. Avoid race condition that caused a longer sleep than necessary. Fix calculation of mFreeRunning for capture mode. Also added systrace logging, which was used to debug this. Bug: 63814792 Test: Run GStomper on Walleye with MMAP on, see bug Change-Id: I7b20098580ff454365425bd21e43c17ade532a0a
/frameworks/av/media/libaaudio/src/client/AudioStreamInternalCapture.cpp
|
ec89b2e2f8c84a7d3936db1a888034f4a4b0df16 |
|
21-Jun-2017 |
Phil Burk <philburk@google.com> |
aaudio: fix CTS for MMAP mode Improve calculation of buffer capacity based on requested minimum. Adjust timing of start() to reduce underflows. Track ServiceEndpoints based on requested deviceId. Fix getFramesRead() and flush() behavior. Fix timeouts due to ClockModel lateness bug. Misc cleanup. Bug: 37755299 Test: test_aaudio.cpp Change-Id: I637c16e87fbe14b6f28c60aeea0b9dfed965ecd0
/frameworks/av/media/libaaudio/src/client/AudioStreamInternalCapture.cpp
|
87c9f646a94259d7c321c3b3d5947fa1778f5ac2 |
|
17-May-2017 |
Phil Burk <philburk@google.com> |
aaudio: lower latency using MMAP capture MMAP can be enabled by setting system properties. Bug: 38267780 Test: input_monitor.cpp Change-Id: I5e86fd1d9baef4fe59837ccbca7971acbb54d8b5 Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/av/media/libaaudio/src/client/AudioStreamInternalCapture.cpp
|