diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-09-30 05:26:14 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-09-30 05:26:14 +0300 |
commit | 6a3ae79625abdf8d85335b44fc6a3d37c2ae840e (patch) | |
tree | 096756bcc902afb753beb66ad7cec196bf891dcb /src/adlmidi.cpp | |
parent | fdaab26f0d0a9c188c0bb9f27220b21c4e26d745 (diff) | |
download | libADLMIDI-6a3ae79625abdf8d85335b44fc6a3d37c2ae840e.tar.gz libADLMIDI-6a3ae79625abdf8d85335b44fc6a3d37c2ae840e.tar.bz2 libADLMIDI-6a3ae79625abdf8d85335b44fc6a3d37c2ae840e.zip |
Another CMF/IMF/RSXX playback fix
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r-- | src/adlmidi.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 097fce8..d76ed8c 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -717,7 +717,8 @@ ADLMIDI_EXPORT int adl_setRunAtPcmRate(ADL_MIDIPlayer *device, int enabled) MidiPlayer *play = GET_MIDI_PLAYER(device); assert(play); play->m_setup.runAtPcmRate = (enabled != 0); - play->partialReset(); + if(!play->m_synth.setupLocked()) + play->partialReset(); return 0; } return -1; |