[Bug 14717] resampled sound is horrible

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Dec 27 09:59:40 CST 2010


http://bugs.winehq.org/show_bug.cgi?id=14717

--- Comment #83 from Krzysztof Nikiel <zzdz2 at yahoo.pl> 2010-12-27 09:59:40 CST ---
broken volume fix:



diff --git a/dlls/dsound/resample.c b/dlls/dsound/resample.c
index 03fcf6f..c133b83 100644
--- a/dlls/dsound/resample.c
+++ b/dlls/dsound/resample.c
@@ -286,11 +286,9 @@ DWORD DSOUND_PullBuffer(IDirectSoundBufferImpl * dsb,
       }

       if (chan < 2)
-        rsum[chan] *= amp[chan];
+        putsample(bufptr, oBPS, rsum[chan]*amp[chan]);
       else
-        rsum[chan] *= amp[2];
-
-      putsample(bufptr, oBPS, rsum[chan]);
+        putsample(bufptr, oBPS, rsum[chan]*amp[2]);

       bufptr += oBPS;
     }

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list