http://bugs.winehq.org/show_bug.cgi?id=27087
--- Comment #9 from GyB gyebro69@gmail.com 2011-05-25 11:01:07 CDT --- (In reply to comment #8)
Could you replace Starfury Demo\Sounds\UIButtonPress.wav with something that plays longer (> 0.5 seconds) and retry? Please replace all short .wav file from the app with long ones and retry.
The replacement sounds (duration > 0.5 second) play fine in the game and no freezing occurs.
Also, what happens if you set win.ini[Sounds] to one of those very short files and issue the MCI sound command a few times?
wintest.exe mcishell hangs in the same way as the game with those short wavs. No sound was playing and I had to interrupt the shell by <Ctrl+C>.
What happens if you replace snd_pcm_avail_update() in winealsa/waveout.c:wodPlayer_FeedDSP with snd_pcm_avail()?
The game hangs in the same way...
So far I've found the following workarounds: 1) setting ALSA to 'emulation' 2) changing 'defaults.pcm.dmix.rate' to '44100' in /usr/share/alsa/alsa.conf. (the default value is 48000 on my system).
Changing MaxShadowSize to 0 or -1 doesn't resolve the problem on my system.