hydrophonitor/modules/audio-recorder/umc404hd-autocapture.sh
Satu Koskinen 150749feae
Enable recording with four channels with Behringer UMC404HD sound card (#30)
* Enable recording with four channels with Behringer UMC404HD sound card

- Add udev rule to enable capture on 4 channels and set volume to max
- Move audio-recorder.nix to modules/audio-recorder/
- Update flake inputs

Signed-off-by: Satu Koskinen <satu.a.koskinen@gmail.com>

* Rename modules/audio-recorder/audio-recorder.nix to default.nix

Signed-off-by: Satu Koskinen <satu.a.koskinen@gmail.com>

---------

Signed-off-by: Satu Koskinen <satu.a.koskinen@gmail.com>
2023-10-14 13:09:30 +03:00

9 lines
426 B
Bash

#!/bin/sh
# Enable capture and set input volume to 100% on all Behringer Uphoria 404HD inputs
set -ex
CARD=$(aplay -l | grep "USB Audio" | sed -e 's/^card\ \([0-9]\+\).*/\1/')
amixer -c $CARD cset "name=Mic Capture Switch,index=0" 1,1,1,1
amixer -c $CARD cset "name=Mic Capture Switch,index=1" 1
amixer -c $CARD cset "name=Mic Capture Volume,index=0" 127,127,127,127
amixer -c $CARD cset "name=Mic Capture Volume,index=1" 127