mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 04:45:42 +01:00
4157528808
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>
35 lines
577 B
Makefile
35 lines
577 B
Makefile
bin_PROGRAMS = alsabat
|
|
man_MANS = alsabat.1
|
|
EXTRA_DIST = alsabat.1 alsabat-test.sh
|
|
sbin_SCRIPTS = alsabat-test.sh
|
|
|
|
alsabat_SOURCES = \
|
|
bat.c \
|
|
common.c \
|
|
signal.c \
|
|
latencytest.c \
|
|
convert.c
|
|
|
|
noinst_HEADERS = \
|
|
common.h \
|
|
bat-signal.h \
|
|
latencytest.h \
|
|
convert.h
|
|
|
|
if HAVE_LIBFFTW3
|
|
alsabat_SOURCES += analyze.c
|
|
noinst_HEADERS += analyze.h
|
|
endif
|
|
|
|
if HAVE_LIBTINYALSA
|
|
alsabat_SOURCES += tinyalsa.c
|
|
noinst_HEADERS += tinyalsa.h
|
|
else
|
|
alsabat_SOURCES += alsa.c
|
|
noinst_HEADERS += alsa.h
|
|
endif
|
|
|
|
AM_CPPFLAGS = \
|
|
-Wall -I$(top_srcdir)/include
|
|
|
|
alsabat_LDADD = @FFTW_LIB@
|