http://bugs.winehq.org/show_bug.cgi?id=28284
--- Comment #8 from Jörg Höhle hoehle@users.sourceforge.net 2011-09-21 20:07:49 CDT --- See bug #28464 for a race condition causing err:dsound:DSOUND_callback Wave queue corrupted!
Quick work-around: Do not call BeginPlaying from waveOutWrite. Instead, solely copy the stopped=> Start part therein, without WOD_PushData.
-O0 optimization level is likely a red herring, which abound with race conditions.