http://bugs.winehq.org/show_bug.cgi?id=11628
--- Comment #9 from Raymond superquad.vortex2@gmail.com 2011-02-24 01:57:15 CST --- (In reply to comment #8)
The music files with garbled/distorted audio are the ones with 44,1 kHz sample rate. The few ones with 48 kHz sample rate in the game are playing correctly with an unpatched Wine.
My /etc/asound.conf:
pcm.card0 { type hw card 0 } ctl.card0 { type hw card 0 }
In winecfg's audio tab ALSA Driver 'Wave Out Devices' shows 'AD198x Analog' 'Mixer devices' shows 'HDA Nvidia'.
/usr/share/alsa/alsa.conf: ... defaults.pcm.dmix.rate 48000 ...
snd_pcm_hw_params_set_rate_resample(pcm, hw_params, 0);
This is equivalent to "--disable-resample" option of aplay
aplay -v -Ddefault --disable-resample any_non_48000Hz.wav