Reset Clip State on Controllers if playback was queued but clip is empty

main
Georg Krause 2019-04-02 14:16:27 +02:00
parent ea89f07cc9
commit db1b94d78c
1 changed files with 2 additions and 4 deletions

View File

@ -352,13 +352,12 @@ void LooperClip::setRecording()
_buffer->setBeats( 0 );
}
jack->getControllerUpdater()->setSceneState(track, scene, GridLogic::STATE_RECORDING);
jack->getControllerUpdater()->setSceneState(track, scene, getState());
}
void LooperClip::setPlaying()
{
if ( _loaded ) {
_loaded = true;
_playing = true;
_recording = false;
@ -368,11 +367,10 @@ void LooperClip::setPlaying()
_barsPlayed = 0;
_playhead = 0;
jack->getControllerUpdater()->setSceneState(track, scene, GridLogic::STATE_PLAYING );
} else {
resetQueues();
}
jack->getControllerUpdater()->setSceneState(track, scene, getState() );
}
void LooperClip::setStopped()