]> git.alsa-project.org Git - alsa-utils.git/commit
bat: Add 'readcapture' option to support analyzing external audio
authorTim Bird <tim.bird@sony.com>
Tue, 17 May 2022 15:50:49 +0000 (09:50 -0600)
committerJaroslav Kysela <perex@perex.cz>
Fri, 4 Nov 2022 21:06:00 +0000 (22:06 +0100)
commit9e525074d2463adaf4da0e428903675bb9fc91f6
tree78afb50258a45ec1d73f49e8d6641cd14cc3045b
parente3d30315ff7808c42663552e17b5f2973fffcd3d
bat: Add 'readcapture' option to support analyzing external audio

If audio data is captured on another device (ie we are NOT using
loopback mode), then allow alsabat to analyze that data, by passing
a filename reference on the command line.

Add the '--readcapture' option to the argument parser. When
this option is specified, avoid doing a local capture, and instead
just read the audio data from the indicated file, and analyze that.

Fixes: https://github.com/alsa-project/alsa-utils/pull/166
Signed-off-by: Tim Bird <tim.bird@sony.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
bat/bat.c
bat/common.h