aboutsummaryrefslogtreecommitdiff
path: root/src/dbopl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbopl.cpp')
-rw-r--r--src/dbopl.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/dbopl.cpp b/src/dbopl.cpp
index 1f2f397..e534c99 100644
--- a/src/dbopl.cpp
+++ b/src/dbopl.cpp
@@ -1203,6 +1203,23 @@ namespace DBOPL
regBD = 0;
reg104 = 0;
opl3Active = 0;
+ //Extra zeros!
+ vibratoIndex = 0;
+ tremoloIndex = 0;
+ vibratoSign = 0;
+ vibratoShift = 0;
+ tremoloValue = 0;
+ vibratoStrength = 0;
+ tremoloStrength = 0;
+ waveFormMask = 0;
+ lfoCounter = 0;
+ lfoAdd = 0;
+ noiseCounter = 0;
+ noiseAdd = 0;
+ noiseValue = 0;
+ memset(freqMul, 0, sizeof(Bit32u) * 16);
+ memset(linearRates, 0, sizeof(Bit32u) * 76);
+ memset(attackRates, 0, sizeof(Bit32u) * 76);
}
INLINE Bit32u Chip::ForwardNoise()