Re: [winealsa] Mind buffer loops when pausing

2007-03-08 Thread Jan Zerebecki
On Wed, Mar 07, 2007 at 02:41:42AM -0500, Chris Bandy wrote: > It looks correct on paper, but I don't seem to have any applications > that even attempt to pause. Can anyone suggest an application to test > this with? All feedback welcome. The winmm wave testcase does pause. Jan

[winealsa] Mind buffer loops when pausing

2007-03-07 Thread Chris Bandy
This patch should fix the incorrect handling of WaveHdr loops when pausing. Like the non-loop case written before, this sums the buffer lengths between dwPlayedTotal and dwWrittenTotal to calculate the new dwPartialOffset. Instead of blindly moving from one buffer to the next, however, this t

[winealsa] Mind buffer loops when pausing

2007-03-07 Thread Chris Bandy
This patch should fix the incorrect handling of WaveHdr loops when pausing. Like the non-loop case written before, this sums the buffer lengths between dwPlayedTotal and dwWrittenTotal to calculate the new dwPartialOffset. Instead of blindly moving from one buffer to the next, however, this trav