Created
December 19, 2024 01:02
-
-
Save innomatics/8944c8182c97029e1a476d6b3ed76c1b to your computer and use it in GitHub Desktop.
Monitor UMC404HD input with ALSA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Period should be half of buffer | |
export BUFFER="--buffer-size=32 --period-size=16" | |
# See arecord -D hw:CARD=U192k,DEV=0 --dump-hw-params | |
export UMC404HD="-D hw:CARD=U192k,DEV=0 -f S32_LE -c4 -r44100" | |
arecord $UMC404HD -t raw $BUFFER | aplay $UMC404HD $BUFFER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment