diff options
-rw-r--r-- | src/chips/java/JavaOPL3.hpp | 2 | ||||
-rw-r--r-- | src/chips/opal/opal.hpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/chips/java/JavaOPL3.hpp b/src/chips/java/JavaOPL3.hpp index 17aff80..e9f0399 100644 --- a/src/chips/java/JavaOPL3.hpp +++ b/src/chips/java/JavaOPL3.hpp @@ -792,6 +792,8 @@ OPL3::~OPL3() void OPL3::initOperators() { + memset(registers, 0, sizeof(registers)); + int baseAddress; // The YMF262 has 36 operators: memset(operators, 0, sizeof(operators)); diff --git a/src/chips/opal/opal.hpp b/src/chips/opal/opal.hpp index 511760c..e8110a5 100644 --- a/src/chips/opal/opal.hpp +++ b/src/chips/opal/opal.hpp @@ -372,8 +372,11 @@ void Opal::Init(int sample_rate) { Op[i].ComputeRates(); // Initialise channel panning at center. - for (int i = 0; i < NumChannels; i++) + for (int i = 0; i < NumChannels; i++) { Chan[i].SetPan(64); + Chan[i].SetLeftEnable(true); + Chan[i].SetRightEnable(true); + } SetSampleRate(sample_rate); } |