History log of /frameworks/av/media/libaaudio/examples/utils/AAudioSimplePlayer.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4a764a3b450095cef05b6025a72c3876c95b6a14 02-Jan-2018 Phil Burk <philburk@google.com> aaudio_loopback: use WAV files, reject low gain

Save recording in a WAV file instead of a RAW file.
Add a test mode that reads a WAV file, for debugging auto-correlation.
Cleanup printed reports.
Discard more input buffers at beginning.

Test: this is a test
Change-Id: Ib5ea63882eda325b02716a448897007a945f7312
/frameworks/av/media/libaaudio/examples/utils/AAudioSimplePlayer.h
967abf87fadccb728f0e31586d08822012c3b60b 21-Nov-2017 Phil Burk <philburk@google.com> aaudio: force underruns in write callback

Test AAudioStream_getXRunCount() by sleeping in callback.

Bug: 38512417
Test: write_sine_callback -pl -n1 -s20 -c2 -u
Change-Id: Ib3fe210b764e4202b70c54a609785de89e52a017
/frameworks/av/media/libaaudio/examples/utils/AAudioSimplePlayer.h
67ed9daf8ec94f01801a927b47a05ae61e40bb3e 07-Sep-2017 Phil Burk <philburk@google.com> aaudio example: loop and add noise blip at start

Loop while starting and stopping or pausing/flushing.
Check framesWritten - framesRead.

Blip so we can tell if the beginning of the sound was cut off.
Add -t option for the high pitched prefix tone.

Test: this is a test
Change-Id: I2a642be67f4e80caad015254d006a0153b46e3f7
/frameworks/av/media/libaaudio/examples/utils/AAudioSimplePlayer.h
187dcd4eeaeace78665dafcee6acb074ef390545 29-Aug-2017 Phil Burk <philburk@google.com> aaudio example: print timestamps during callbacks.

Bug: 63918065
Test: this is a test
Change-Id: Id25dd36764761583986d3ce29f7d82032ec4539f
/frameworks/av/media/libaaudio/examples/utils/AAudioSimplePlayer.h
7a61a3ae540748164068683cadacaea5ed225d68 10-Jul-2017 Phil Burk <philburk@google.com> aaudio examples: handle disconnect in write_sine_callback

Automatically reopen the stream if we get disconnected.
Add a futex based signaling class so that the error callback can
immediately inform a waiting thread.

This can be used to prevent the system from playing an unpleasant sound
after the stream is disconnected.

Bug: 63342351
Test: plug and unplug headphones while running write_sine_callback
Change-Id: I3ea4fb24106156a29d2f302f3eb614f25f1b758a
/frameworks/av/media/libaaudio/examples/utils/AAudioSimplePlayer.h
faeb8b20e8ce98d308ca5ec095eeba6583cd9ec6 26-Jul-2017 Phil Burk <philburk@google.com> aaudio: fix getXRunCount

Mixer was not advancing FIFO when underflowed so the client could not
detect the xrun.
Also underruns could cause the stream to drift in time relative to other
streams.

Bug: 64033855
Test: trigger underruns by sleeping in a callback
Change-Id: Ia038f5048ffbff3b82e9d86e6807483dfe6879d0
/frameworks/av/media/libaaudio/examples/utils/AAudioSimplePlayer.h
fcf9efd59e36759ee7df66fdfce4f8eedeb376e4 14-Jul-2017 Phil Burk <philburk@google.com> aaudio: add glitch detection to loopback, improve latency check

Also improve automatic loop gain control for latency testing.
Use ArgParser to parse command line options.

Bug: 38178592
Test: this is a test
Change-Id: Idfe8f25544a3e7c74ee15be008bf34e3a0741455
/frameworks/av/media/libaaudio/examples/utils/AAudioSimplePlayer.h
44795237e0f43d6efe16ef1cb047ce7ea0cbb870 01-Jul-2017 Phil Burk <philburk@google.com> aaudio: command line argument parser

Generic parser that is used in multiple examples.

Added -n{numberOfBursts} for buffer size.

This is being used to test the MMAP features.

Bug: 63002656
Test: this is a test
Change-Id: Idf7560f9bb3ed7834f6c4686dd6009f27f04220e
Merged-In: Idf7560f9bb3ed7834f6c4686dd6009f27f04220e
/frameworks/av/media/libaaudio/examples/utils/AAudioSimplePlayer.h
629afae6135e6dc1e88ab4080f984fb30b3cdd7c 26-May-2017 Eric Laurent <elaurent@google.com> aaudio: add tests for device switch detection and refactor

Add detection for device switch during capture and playback tests:
write_sine, write_sine_callback, input_monitor, input_monitor_callback

Refactor tests and move simple player, simple recorder and utility
methods in separate header files and folder.

Bug: 33355262
Test: run write_sine and input_monitor tests
Change-Id: Iced66fa4344aecd8a2952e22a98e6e8454f38a5e
/frameworks/av/media/libaaudio/examples/utils/AAudioSimplePlayer.h