Skip to content

Commit

Permalink
Fix issues #6383 and #4410 (pause issues). (#6590)
Browse files Browse the repository at this point in the history
Fixes #6383 and fixes #4410.

Co-authored-by: Hyunjin Song <tteu.ingog@gmail.com>
  • Loading branch information
madisonsilver and PhysSong authored Feb 19, 2023
1 parent 1921196 commit 9bcf63c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/core/Song.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ void Song::togglePause()
{
m_playing = false;
m_paused = true;
Engine::audioEngine()->clear();
}

m_vstSyncController.setPlaybackState( m_playing );
Expand Down
3 changes: 1 addition & 2 deletions src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,7 @@ void PianoRoll::setCurrentMidiClip( MidiClip* newMidiClip )
}

// force the song-editor to stop playing if it played a MIDI clip before
if( Engine::getSong()->isPlaying() &&
Engine::getSong()->playMode() == Song::Mode_PlayMidiClip )
if (Engine::getSong()->playMode() == Song::Mode_PlayMidiClip)
{
Engine::getSong()->playMidiClip( nullptr );
}
Expand Down

0 comments on commit 9bcf63c

Please sign in to comment.