Fix issues #6383 and #4410 (pause issues). (#6590)

Fixes #6383 and fixes #4410.

Co-authored-by: Hyunjin Song <tteu.ingog@gmail.com>
This commit is contained in:
madisonsilver
2023-02-18 18:01:11 -08:00
committed by GitHub
parent 192119621f
commit 9bcf63c5da
2 changed files with 2 additions and 2 deletions

View File

@@ -620,6 +620,7 @@ void Song::togglePause()
{
m_playing = false;
m_paused = true;
Engine::audioEngine()->clear();
}
m_vstSyncController.setPlaybackState( m_playing );

View File

@@ -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 );
}