|
From: <man...@us...> - 2013-06-08 17:17:49
|
Revision: 2323
http://sourceforge.net/p/modplug/code/2323
Author: manxorist
Date: 2013-06-08 17:17:41 +0000 (Sat, 08 Jun 2013)
Log Message:
-----------
[Ref] Clear both, front and rear mix buffers in CreateStereoMix().
Modified Paths:
--------------
trunk/OpenMPT/soundlib/Fastmix.cpp
trunk/OpenMPT/soundlib/Sndmix.cpp
Modified: trunk/OpenMPT/soundlib/Fastmix.cpp
===================================================================
--- trunk/OpenMPT/soundlib/Fastmix.cpp 2013-06-08 00:20:19 UTC (rev 2322)
+++ trunk/OpenMPT/soundlib/Fastmix.cpp 2013-06-08 17:17:41 UTC (rev 2323)
@@ -1448,8 +1448,12 @@
CHANNELINDEX nchused, nchmixed;
if (!count) return;
+
+ // Resetting sound buffer
+ StereoFill(MixSoundBuffer, count, &gnDryROfsVol, &gnDryLOfsVol);
+ if(m_MixerSettings.gnChannels > 2) InitMixBuffer(MixRearBuffer, count*2);
+
bool ITPingPongMode = IsITPingPongMode();
- if (m_MixerSettings.gnChannels > 2) InitMixBuffer(MixRearBuffer, count*2);
nchused = nchmixed = 0;
for(CHANNELINDEX nChn=0; nChn<m_nMixChannels; nChn++)
{
Modified: trunk/OpenMPT/soundlib/Sndmix.cpp
===================================================================
--- trunk/OpenMPT/soundlib/Sndmix.cpp 2013-06-08 00:20:19 UTC (rev 2322)
+++ trunk/OpenMPT/soundlib/Sndmix.cpp 2013-06-08 17:17:41 UTC (rev 2323)
@@ -287,9 +287,6 @@
m_nMixStat = 0;
}
nMixStatCount++;
-
- // Resetting sound buffer
- StereoFill(MixSoundBuffer, lCount, &gnDryROfsVol, &gnDryLOfsVol);
if (m_MixerSettings.gnChannels >= 2)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|