aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostname/desktop1
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/hostname/desktop1')
-rw-r--r--scripts/hostname/desktop13
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/hostname/desktop1 b/scripts/hostname/desktop1
index b9aab20..e317a3c 100644
--- a/scripts/hostname/desktop1
+++ b/scripts/hostname/desktop1
@@ -13,11 +13,12 @@ samplerate=48000
bits=16
buffer_ms=100
microphone_gain=50
+max_channels=8
pkg install -y virtual_oss
sysrc -v \
virtual_oss_enable=YES \
- virtual_oss_dsp="-T /dev/sndstat -C 2 -c 2 -S -r ${samplerate} -b ${bits} -s ${buffer_ms}ms -O /dev/dsp${playback_device} -R /dev/dsp${recording_device} -d dsp -t vsdp.ctl"
+ virtual_oss_dsp="-T /dev/sndstat -C "$max_channels" -c "$max_channels" -S -r ${samplerate} -b ${bits} -s ${buffer_ms}ms -O /dev/dsp${playback_device} -R /dev/dsp${recording_device} -d dsp -t vsdp.ctl"
service virtual_oss restart
set_loader_conf "hint.pcm.${recording_device}.mic=${microphone_gain}"