aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-11-25 20:17:38 -0500
committerCullum Smith <cullum@sacredheartsc.com>2024-11-25 20:17:42 -0500
commit09214c8e6f8307bba50c385df4d7dc9320138325 (patch)
tree931095c486df1731cf713841eb3e0d9a2ae500d7
parent589528dc75123ef451b55d3dd321a19deef7f632 (diff)
downloadwebsite-09214c8e6f8307bba50c385df4d7dc9320138325.tar.gz
freebsd 14 on the desktop: virtual_oss args -c/-C
Blurays/DVDs with 5.1 surround won't play unless you give virtual_oss enough channels.
-rw-r--r--src/blog/freebsd-14-on-the-desktop/index.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/blog/freebsd-14-on-the-desktop/index.md b/src/blog/freebsd-14-on-the-desktop/index.md
index 6d15782..73b26d4 100644
--- a/src/blog/freebsd-14-on-the-desktop/index.md
+++ b/src/blog/freebsd-14-on-the-desktop/index.md
@@ -356,7 +356,7 @@ index 0, I'll enable `virtual_oss` like so:
```bash
sysrc -v virtual_oss_enable=YES
-sysrc -v virtual_oss_dsp='-T /dev/sndstat -C 2 -c 2 -S -r 48000 -b 16 -s 100ms -O /dev/dsp1 -R /dev/dsp0 -d dsp'
+sysrc -v virtual_oss_dsp='-T /dev/sndstat -C 8 -c 8 -S -r 48000 -b 16 -s 100ms -O /dev/dsp1 -R /dev/dsp0 -d dsp'
```
You'll need to set the `-r` flag to the sample rate and `-b` to the bit depth of your device
@@ -365,6 +365,15 @@ If your devices have different sample rates, the `-S` flag enables automatic res
The `-s` flag sets the buffer size. I had to increase this to `100ms` to avoid clipping.
+The `-c` and `-C` flags set the number of channels. I originally had this set to 2, but
+found that any video with surround sound had no audio. VLC printed the following error:
+
+```
+oss audio output error: cannot set 6 channels
+```
+
+Bumping this up to 8 solved the issue.
+
### Device Permissions via devfs
You should create a custom `devfs(8)` ruleset to allow unprivileged users to access