mciwave: Abort the play loop in case of audio error.

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Fri Dec 4 03:42:27 CST 2009


Hi,

The unpatched play loop dead-locks should waveOutWrite ever return an error
mid-stream.  However in practice, when hangs happen, I've never seen
this error message: the hang is somewhere else.

The record loop should be handled similarly, but as everything happens
within the callback, the treatment is different.
So for now here's the patch for the play loop only (and besides, who's
recording, except the test suite?).

I've removed the dwbytesrecord trace from the play loop since I've
never seen it log an other value than 0, which is expected since it's
only used by wid*, not wod* functions.

Regards,
	Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mciwave-Abort-the-play-loop-in-case-of-audio-error.patch
Type: application/octet-stream
Size: 1791 bytes
Desc: 0001-mciwave-Abort-the-play-loop-in-case-of-audio-error.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091204/ded31f52/attachment.obj>


More information about the wine-patches mailing list