http://bugs.winehq.org/show_bug.cgi?id=20799
--- Comment #93 from Raymond superquad.vortex2@gmail.com 2011-02-17 22:03:27 CST ---
(In reply to comment #54)
snd_pcm_sw_params_set_silence_threshold is an ALSA function. There's nothing particularly special about it that I know of, though, so I can only imagine that the two games are overwriting heap memory a bit differently. You need to figure out what's causing the memory to be overwritten and why; the ALSA crashes are just a side-effect of the issue.
The point is snd_pcm_sw_params_set_silence_threshold return error when the value is greater than buffer size, it is not correct to set silence threshold to boundary
BTW, why does winealsa expect it always have commitadhead to write to the sound card in CommitAll() since the application just issue getposition() to get the playback position ?