Changed the placement of code

This commit is contained in:
Wong Cho Ching
2014-01-26 14:23:32 +08:00
parent b15942d120
commit b502ae9da4

View File

@@ -148,6 +148,9 @@ opl2instrument::opl2instrument( InstrumentTrack * _instrument_track ) :
emulatorMutex.lock();
theEmulator = new CTemuopl(engine::mixer()->processingSampleRate(), true, false);
theEmulator->init();
// Enable waveform selection
theEmulator->write(0x01,0x20);
emulatorMutex.unlock();
//Initialize voice values
voiceNote[0] = 0;
@@ -157,10 +160,6 @@ opl2instrument::opl2instrument( InstrumentTrack * _instrument_track ) :
voiceLRU[i] = i;
}
// Enable waveform selection
theEmulator->write(0x01,0x20);
emulatorMutex.unlock();
updatePatch();
// Can the buffer size change suddenly? I bet that would break lots of stuff