alsa-utils/bat
vivian,zhang 4157528808 alsabat: add round trip audio latency test
Audio latency is the time delay as an audio signal passes through
a system. There are many kinds of audio latency metrics. One useful
metric is the round trip latency, which is the sum of output latency
and input latency.

The measurement step works like below:
1. Listen and measure the average loudness of the environment for
one second;
2. Create a threshold value 16 decibels higher than the average
loudness;
3. Begin playing a ~1000 Hz sine wave and start counting the samples
elapsed;
4. Stop counting and playing if the input's loudness is higher than
the threshold, as the output wave is probably coming back;
5. Calculate the audio latency value in milliseconds.

Signed-off-by: Zhang Vivian <vivian.zhang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-06-08 15:11:25 +02:00
..
alsa.c alsabat: add round trip audio latency test 2016-06-08 15:11:25 +02:00
alsa.h BAT: Add playback and record functions 2015-10-02 12:42:01 +02:00
alsabat-test.sh alsabat: add round trip audio latency test 2016-06-08 15:11:25 +02:00
alsabat.1 alsabat: add round trip audio latency test 2016-06-08 15:11:25 +02:00
analyze.c alsabat: fix fopen and messages 2016-03-21 18:04:03 +01:00
analyze.h BAT: Add spectrum analysis functions 2015-10-02 12:42:03 +02:00
bat-signal.h bat: Avoid local signal.h file 2015-11-09 14:04:11 +01:00
bat.c alsabat: add round trip audio latency test 2016-06-08 15:11:25 +02:00
common.c alsabat: move alsa process to a single block 2016-03-23 17:51:22 +01:00
common.h alsabat: add round trip audio latency test 2016-06-08 15:11:25 +02:00
convert.c BAT: Add converting functions 2015-10-02 12:42:02 +02:00
convert.h BAT: Add converting functions 2015-10-02 12:42:02 +02:00
latencytest.c alsabat: add round trip audio latency test 2016-06-08 15:11:25 +02:00
latencytest.h alsabat: add round trip audio latency test 2016-06-08 15:11:25 +02:00
Makefile.am alsabat: add round trip audio latency test 2016-06-08 15:11:25 +02:00
signal.c alsabat: fix a possible memory leak 2016-06-01 12:33:44 +02:00
tinyalsa.c alsabat: add round trip audio latency test 2016-06-08 15:11:25 +02:00
tinyalsa.h alsabat: add tinyalsa support 2016-03-23 17:51:22 +01:00