aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-11-25 20:23:23 -0500
committerCullum Smith <cullum@sacredheartsc.com>2024-11-25 20:23:23 -0500
commitecf6c2147d8fed19aa616f0793252ae7f53c5010 (patch)
treefac5d50bfbbf69d094239c67a3f450a2b7eda034
parentf2735a201192f01a461f4c3e75d9636dc54e2ec2 (diff)
downloadinfrastructure-ecf6c2147d8fed19aa616f0793252ae7f53c5010.tar.gz
virtual_oss: bump channel count to 8
With only 2 channels, sound doesn't work on any media with surround sound.
-rw-r--r--scripts/hostname/desktop13
-rw-r--r--scripts/hostname/desktop23
m---------site0
3 files changed, 4 insertions, 2 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}"
diff --git a/scripts/hostname/desktop2 b/scripts/hostname/desktop2
index b9aab20..e317a3c 100644
--- a/scripts/hostname/desktop2
+++ b/scripts/hostname/desktop2
@@ -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}"
diff --git a/site b/site
-Subproject d6354d2fbb980ef804ba585e262a1c0bbd15712
+Subproject c4d026810ef6273855a6020212200f10c16da8f