From 589528dc75123ef451b55d3dd321a19deef7f632 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Fri, 22 Nov 2024 08:38:40 -0500 Subject: freebsd on the desktop: increase virtual_oss buffer --- src/blog/freebsd-14-on-the-desktop/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/blog/freebsd-14-on-the-desktop') diff --git a/src/blog/freebsd-14-on-the-desktop/index.md b/src/blog/freebsd-14-on-the-desktop/index.md index 8a4bdff..6d15782 100644 --- a/src/blog/freebsd-14-on-the-desktop/index.md +++ b/src/blog/freebsd-14-on-the-desktop/index.md @@ -356,14 +356,14 @@ 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 25ms -O /dev/dsp1 -R /dev/dsp0 -d dsp' +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' ``` You'll need to set the `-r` flag to the sample rate and `-b` to the bit depth of your device (you can usually find these values in `dmesg`). If your devices have different sample rates, the `-S` flag enables automatic resampling. -The `-s` flag sets the buffer size. I had to increase this to `25ms` to avoid clipping. +The `-s` flag sets the buffer size. I had to increase this to `100ms` to avoid clipping. ### Device Permissions via devfs -- cgit v1.2.3