Setting sample rates for sound in Pipe-wire

Moderator: Forum moderators

Post Reply
User avatar
KevinTheGerbil
Posts: 11
Joined: Sat Apr 01, 2023 9:55 pm
Has thanked: 2 times
Been thanked: 6 times

Setting sample rates for sound in Pipe-wire

Post by KevinTheGerbil »

Hi all,

I've been using Bwpup64 10.0.8 on both of my laptops for the last couple of weeks now - an excellently-put-together distribution that, with very few exceptions, just seems to work without issues (apart from PupMTP, which to be fair I've never ever managed to get to work with my phone on ANY of the Puppy distros and this one is no exception. I just installed Android File Transfer instead (using Synaptic package manager), and that appears to work perfectly).

Anyhow: I noticed that a few of my programs that rely on different sound sample rates being available weren't working properly. The issue appears to be that Pipe-wire audio is set up so that the soundcard sample rate has a fixed value of 48000 only (no other options). This setting can be found in the file /usr/share/pipewire/pipewire.conf, line 30, which reads:

#default.clock.allowed-rates = [ 48000 ]

The fix is to uncomment that line (remove the #) and then add the other required sample rates between the square brackets. In my case this is:

default.clock.allowed-rates = [ 44100 48000 96000 ]

Some how-tos that I've found online say that you should put commas between the sample rate values, others not, but I found commas to be unnecessary.
Save the file and reboot.

You should find that everything now works as it should with all the specified sample rates being available. I didn't try messing with any of the other sound settings in that file and haven't (yet) encountered any issues, but your mileage may vary.

Hope this info is useful for someone :)

  • Kevin
Post Reply

Return to “BookwormPup”