Changed the placement of code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user