alsabat command examples
alsabat – command-line sound tester for ALSA sound card driver
#alsabat -P plughw:0,0 -C plughw:0,0 -c 2 -f S32_LE -F 250
Generate and play a sine wave of 250 Hertz with 2 channel and S32_LE format, and then capture and analyze.
#alsabat -P plughw:0,0 -C plughw:0,0 --file 500Hz.wav
Play the RIFF WAV file “500Hz.wav” which contains 500 Hertz waveform LPCM data, and then capture and analyze.