dsound SRC bug fix

Robert Reif reif at earthlink.net
Tue Aug 10 06:49:58 CDT 2004


Fixes a bug where freqAdjust was not being updated properly
when the primary buffer format changed.

This should fix some of the complaints about sound playing at the wrong 
speed.
-------------- next part --------------
Index: dlls/dsound/primary.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/primary.c,v
retrieving revision 1.27
diff -i -r1.27 primary.c
343c343,344
< 	int			i;
---
> 	int i;
> 	DWORD nSamplesPerSec; 
372a374
> 	nSamplesPerSec = dsound->wfx.nSamplesPerSec;
428c430
< 	if (dsound->wfx.nSamplesPerSec != wfex->nSamplesPerSec) {
---
> 	if (nSamplesPerSec != wfex->nSamplesPerSec) {


More information about the wine-patches mailing list