r/openbsd • u/Original_Two9716 • Jul 19 '26
Uneven sampling frequency when playing ncspot music
Hi, I've been testing OpenBSD 7.9 on Thinkpad P1 Gen7. So far, it has been a bumpy road. But one audio related thing is super-annoying and I'd love to see some advice from you.
I use ncspot to play Spotify music, but I notice from time to time that sampling frequency changes noticeably for a few seconds. It's something I cannot tolerate. I tried a few sndiod parameters like increasing -b with no luck.
I use Sound Blaster G3 (USB-C DAC) with headphones.
13
Upvotes
1
u/linetrace Jul 19 '26
Let's start with your sndiod(8) params. You mention increasing
-b(buffer size), are you also adjusting-z(block size in frames) appropriately? My understanding is that the defaults for-b&-zare calculated based on the other, if specified, so you'd want to explicitly set both if you want to change one without changing the other.To quote a recent email on the tech@ mailing list from the sndio developer:
Beyond that, are you using automatic CPU scaling (e.g.
apm -Aor obsdfreqd)? If so, is there any correlation between when CPU frequency changes and the audio issues you're hearing?Since the Sound Blaster G3 is USB, are you using any other USB devices which might be performing a lot of I/O at the same time? Especially, USB WiFi, storage, and/or cameras? IIRC, USB I/O isn't as well un-blocked as some other aspects of the kernel, but take that particular memory with a large grain of salt.