Sound output sample rate

Questions about Wine on Linux
Locked
fa2k
Newbie
Newbie
Posts: 1
Joined: Sun Jan 27, 2013 1:35 pm

Sound output sample rate

Post by fa2k »

Hi, I read the message about PulseAudio but it doesn't answer my question. I hope it's OK if I post here.

I have set the pulseaudio sample rate to 48kHz in daemon.conf, because that's better when I watch TV and movies. When I have this setting, however, sound is a little bit distorted when playing from Wine. The distortion is most clear in music on sections with a single note or voice, and appears as jitter or crackling. The distortion disappears if I set the pulseaudio sample rate to 44.1kHz (the default).

I see that wine or the windows application (Spotify) itself does some resampling, because it outputs 48kHz to PA:
$ pacmd list-sink-inputs
[...]
sample spec: float32le 2ch 48000Hz
channel map: front-left,front-right
Stereo
resample method: copy
module: 12
client: 26 <Spotify.exe>
properties:
media.name = "audio stream #1"
application.name = "Spotify.exe"
[...]


If I could just get Wine to just ouput 44.1kHz to pulseaudio, PA should be able to resample that at high quality without distortions. Is there any way to set the output sample rate of wine? Or is that controlled by the win32 application?
Locked