Set the Audio Input Output Frequency to 41000 kHz instead of 48000kHz


I try to set the output audio frequency to 41000 kHz but I can’t change it by the audio panel. (forced to 48000kHz.

Is there an other way to do this?(ex:in a config file) Cause I use a VM, and when I playing a music that’s lag a little bit.

I have already set Pulse Audio on Qemu on Debian by the way explain here:
Harmonize sample rates of host and guest system

The way is this:
Setting default sample rate in Linux

open /etc/libvirt/qemu.conf via

sudo nano /etc/libvirt/qemu.conf

and uncomment the line

user = "example"
(user = “root” for me)

replace your username with example

open /etc/pulse/daemon.conf

and find/add/uncomment the lines and set these values:

default-sample-rate = 44100
alternate-sample-rate = 48000

afterwards restart the pulse audio service via

pulseaudio -k or reboot.

All this tutorial from the link above.
It seem work but lag sometimes again.

Thanks for reply.

1 Like

It would be interesting if you could change the frequency in Haiku along with the bitrate.

Pulseaudio is horrible and buggy, I suggest you use jack audio or try this pulseaudio tips on the link!

Haiku does not use PulseAudio and does not use Jack. We write our own code.


Yes this is my Host that use PulseAudio the guest is based on AC97 audio.