History log of /frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a2951c5943172b122cfbfd4098b4f6738eab207d 26-May-2018 Phil Burk <philburk@google.com> aaudio: loopback test improved

Check to make sure input capacity is large enough.
Add -B option to set input capacity.
Handles variable callback size better when setting up the
loop for Legacy mode.
Narrower impulse.

Bug: 80230720
Test: this is a test
Change-Id: I9349cf8248b65850073bfb8178bbb802a93fd684
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
74ce5e8273a1c3f6ea14ab087f66f7d32ad106d7 27-Apr-2018 Phil Burk <philburk@google.com> aaudio: fix loopback test, track magnitude drift

Loopback test was still reporting some glitches.
These were false alarms due to:
* starting input before output causing an overflow
* not waiting for the input to reach equilibrium with the output
* detecting slow drift in magnitude as a glitch

I changed the logic for setting up a test
and track slow changes in magnitude.
Now the rare glitch seems to be a real glitch.

Bug: 78139448
Test: this is a test
Change-Id: Id16d7dc59c0f2e040fe1dfb0337e9ed987d4fd02
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
ac9d979583c4a10c2ebcf9649d773edf7acce723 12-Apr-2018 Phil Burk <philburk@google.com> aaudio example: fix loopback test

Support both I16 and FLOAT format.
Silence output at beginning when skipping buffers. Was sometimes spewing noise.
Print more information when it fails so we can debug the failure.
Fix getting framesPerBurst from wrong stream.
Track when read gets too few frames.

Bug: 38268031
Bug: 78139448
Test: this is a test
Change-Id: If562856ab2eac607a8bb15da1cc587ae631f7a1d
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
dd574cabe69ac8a1b98b1e51952a93d3e77bb7be 04-Apr-2018 Phil Burk <philburk@google.com> aaudio: add format option to example programs

Select format using -f0, -f1 or -f2.
Add support for float format to input_monitor.cpp

Bug: 38268031
Test: these are tests
Change-Id: Idd7dc6c0cc268126d4ea008bcb49693b73a8f81f
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
4e98efa3b18ba1d72d28358da86f9beb5596588d 06-Feb-2018 Phil Burk <philburk@google.com> aaudio_loopback: general cleanup, use dlsym

Cleanup printing.
Use dlsym so this can run on O.

Test: aaudio_loopback -tl -pl -n2
Change-Id: I77b931e59cced32b0cc23076f9b156d082e6bf0b
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
6d6f3f6d34aab02774ebf9caf641e97432ae157a 13-Jan-2018 Phil Burk <philburk@google.com> aaudio examples: add -u -i and -y for attributes

Update usage() printout.

Test: this is a test
Change-Id: I4f7b5b8af26523a7ba09d95bad27f0f131508087
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
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/loopback/src/loopback.cpp
94d28be1805800764701225fcae696aa11dab93e 08-Nov-2017 Mikhail Naganov <mnaganov@google.com> aaudio: Update aaudio_loopback help screen

Fix "-c{inputChannels}" -- it's actually for output channels.
Add description for "-m" options.
Add description for "-x" option.

Test: builds
Change-Id: Ib234d1a5eaff75e209041d08f5149f488c1f5867
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
e72b63e9fb2161880704724b597bea57eeb77499 06-Nov-2017 Chih-hung Hsieh <chh@google.com> Merge "Use -Werror in frameworks/av/media/libaaudio"
eecf9adf07c2ef16f94b94a6970756f562404f14 02-Nov-2017 Mikhail Naganov <mnaganov@google.com> aaudio: Update aaudio_loopback usage screen

-- replace 'loopback' with 'aaudio_loopback', since this is how
the executable is called;

-- remove "-f" argument, as it's not implemented;

-- in the example, replace "-b2" to "-n2" ("-b2" doesn't seem correct);

-- brush up text layout.

Change-Id: Ifae87380d0c9378f936f661ad77cb94a944c05fc
Test: make and run
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
68326fe017a18957419a81489b67f75831f9a674 31-Oct-2017 Chih-Hung Hsieh <chh@google.com> Use -Werror in frameworks/av/media/libaaudio

* Remove unused local variables, labels, functions, private fields.
* Fix warning of unused return result.
* Use template functions in .h file to avoid warning of unused static functions.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I54962a7fd36a405e54366130b9c0a24e26fe8ebb
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
36967fb1a52f44cef9b5bdcca0f646aa136e285a 11-Oct-2017 Dan Albert <danalbert@google.com> Add missing includes.

Test: mma
Bug: None
Change-Id: I97b9e5e1b6e8b3126a8668460a8c99e4ef1a907d
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
0befec600314a79c0d142c3edd99f7d1c75e1afe 29-Jul-2017 Phil Burk <philburk@google.com> aaudio: update state for legacy mode

Add logging to the loopback test.
Update state in the callback.
Implement AAudioStreamRecord::getFramesWritten().

Bug: 62781173
Bug: 64214193
Test: aaudio_loopback.cpp, look for STARTED state while running
Change-Id: Iba867d048dcfcafe6db1d095abe2766f1aabe608
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
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/loopback/src/loopback.cpp
4ea2d60c6baa3f3a6751165cbb45e66ff6968aa0 20-Jun-2017 Phil Burk <philburk@google.com> aaudio loopback: improve latency tester

Add command line options.
Add magnitude measurement.
Add automated latency analyzer that uses round trip echo and an impulse correlation.
Uses Harmonic Product Spectrum technique but in the time domain.

Bug: 33398120
Bug: 38178592
Test: this is a test
Change-Id: Ied6c09e6d8d373a188c13ed85b27de6c4b7be2f4
Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp
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/loopback/src/loopback.cpp
9dca9824da74d50be02bc81f539cc77b7bde678a 26-May-2017 Phil Burk <philburk@google.com> aaudio: remove deprecated aaudio_audio_format_t

Should be using aaudio_format_t

Bug: 62141619
Test: compile and run CTS test_aaudio.cpp
Change-Id: Ibbba2769dfd8bcd9c108d87c19fe1fad2ba43df1
Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.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/examples/loopback/src/loopback.cpp
4485d41bcded0eceec7ec97d50aa2b0e702397a0 10-May-2017 Phil Burk <philburk@google.com> aaudio: fix output bugs and improve input performance, add loopback test

Support AAUDIO_PERFORMANCE_MODE in AudioStreamRecord.cpp
Fix race condition when closing a stream, which this test revealed.
Fix setting of negative notificationFrames for non-FAST tracks.

Convert test from old Oboe API to AAudio.
Add command line options to the test.
Add systrace calls.

Bug: 34093052
Bug: 38313432
Bug: 38178592
Test: loopback.cpp
Change-Id: Ib6d2995cdd3ed432937fde2f26c5394013f0d6e0
Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/av/media/libaaudio/examples/loopback/src/loopback.cpp