From 8a0a939a3281a31fc17327d24f0a4c0975a1b9fa Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Tue, 10 Apr 2018 02:15:03 +0300 Subject: [Experimental] Added support for emulation core switching in real time! Due to clunky playback on updated Nuked OPL3 emulator v 1.8, I kept the Nuked OPL3 1.7.4 work in parallel and be a separated switchable emulator. --- src/adlmidi_load.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/adlmidi_load.cpp') diff --git a/src/adlmidi_load.cpp b/src/adlmidi_load.cpp index bc1fd8d..77e6f69 100644 --- a/src/adlmidi_load.cpp +++ b/src/adlmidi_load.cpp @@ -761,14 +761,14 @@ riffskip: return false; } - //Build new MIDI events table (ALPHA!!!) + //Build new MIDI events table if(!buildTrackData()) { errorStringOut = fr._fileName + ": MIDI data parsing error has occouped!\n" + errorString; return false; } - opl.Reset(m_setup.PCM_RATE); // Reset AdLib + opl.Reset(m_setup.emulator, m_setup.PCM_RATE); // Reset OPL3 chip //opl.Reset(); // ...twice (just in case someone misprogrammed OPL3 previously) ch.clear(); ch.resize(opl.NumChannels); -- cgit v1.2.3