http://bugs.winehq.org/show_bug.cgi?id=14812
--- Comment #5 from Ben Trusty ben.trusty@gmail.com 2008-08-11 07:14:21 --- did code change suggested by Maarten Lankhorst,
Change snd_pcm_uframes_t used = This->mmap_buflen_frames - snd_pcm_avail_update(This->pcm); To snd_pcm_sframes_t used = This->mmap_buflen_frames - snd_pcm_avail_update(This->pcm);
if (used < 0) { snd_pcm_forward(This->pcm, -used); used = 0; }
complied, ran
it worked, though some sound clips got truncated and glitched between two sound tracks within game play. will have to test further tonight after work.
but the game never dropped sound completely. and never locked up because of it. i was able to play C&C for 30 minutes without losing sound and then the rest of the game. just need to figure out the overlap / lack of simultaneous streams so that the sound does not sound glitchy.
thanks