Direct Sound freezes. I'd like to help fix them...

Brian Gunlogson bmg300 at
Sat Jun 18 17:33:30 CDT 2005

Baldurs Gate 2: Shadows of amn, locks up when many sounds are played at once. Like during intense

I am positive it is related to direct sound. Because when I disable direct sound in the WINE
source (by stubbing out the functions) the game runs fine.

The last 5 TRACE()s before the game freezes:

000b:trace:dsound:DSOUND_MixerVol left = 3a59, right = 3dd1
000b:trace:dsound:DSOUND_MixInBuffer (0x4fa720f8,9416,34684)
000b:trace:dsound:DSOUND_tmpbuffer (0x40417778,-4)
000b:trace:dsound:DSOUND_MixInBuffer MixInBuffer (0x4fa720f8) len = -4, dest = 9416
000b:trace:dsound:DSOUND_MixerNorm (0x4fa720f8, 0x52a2d43e, 0x4f9e0dc0), buf_mixpos=26190


I am under the assumption that direct sound runs in a seperate thread? And maybe there is some
buffer overflow/corruption/colision that leads to an infinite loop or even a deadlock (doesn't
seem like a deadlock)?

What would you do next?

Brian G.

Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football

More information about the wine-devel mailing list