Skip to content

Commit

Permalink
Fixed MIDI sync skip issue in LSDJ
Browse files Browse the repository at this point in the history
  • Loading branch information
tommitytom committed May 25, 2019
1 parent 0e2c116 commit 2bf6c7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RetroPlugInstrument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ int RetroPlugInstrument::UnserializeState(const IByteChunk& chunk, int startPos)
}

void RetroPlugInstrument::GenerateMidiClock(SameBoyPlug* plug, int frameCount, bool transportChanged) {
if (transportChanged) {
Lsdj& lsdj = _plug.lsdj();
if (transportChanged && _plug.midiSync() && !lsdj.found) {
if (mTimeInfo.mTransportIsRunning) {
plug->sendMidiByte(0, 0xFA);
} else {
Expand All @@ -118,7 +119,6 @@ void RetroPlugInstrument::GenerateMidiClock(SameBoyPlug* plug, int frameCount, b
}

if (mTimeInfo.mTransportIsRunning) {
Lsdj& lsdj = _plug.lsdj();
if (lsdj.found) {
switch (lsdj.syncMode) {
case LsdjSyncModes::Midi:
Expand Down

0 comments on commit 2bf6c7a

Please sign in to comment.