-Fixed GridLogic / LooperClip multiple scene launch issue

This commit is contained in:
Harry van Haaren 2013-09-05 23:43:42 +01:00
parent 076727dd7b
commit ae92ed27b9
3 changed files with 24 additions and 7 deletions

View file

@ -42,11 +42,10 @@ void GridLogic::launchScene( int scene )
}
else
{
bool current = lc->playing();
lc->queueStop();
bool next = lc->playing();
if ( current != next )
// this scene may need to be updated:
if ( lc->getQueuePlay() )
{
lc->queuePlay(false);
jack->getControllerUpdater()->setSceneState( t, s, lc->getState() );
}
}

View file

@ -228,9 +228,9 @@ void LooperClip::bar()
}
void LooperClip::queuePlay()
void LooperClip::queuePlay(bool qP)
{
_queuePlay = true;
_queuePlay = qP;
_queueStop = false;
}
@ -272,6 +272,21 @@ bool LooperClip::playing()
return _playing;
}
bool LooperClip::getQueueStop()
{
return _queueStop;
}
bool LooperClip::getQueuePlay()
{
return _queuePlay;
}
bool LooperClip::getLoaded()
{
return _loaded;
}
bool LooperClip::recording()
{
return _recording;

View file

@ -48,6 +48,9 @@ class LooperClip : public SaveAble
/// analyses current _playing _recording vars, returns the current State
GridLogic::State getState();
bool playing();
bool getLoaded();
bool getQueueStop();
bool getQueuePlay();
bool recording();
/// get buffer details
@ -57,7 +60,7 @@ class LooperClip : public SaveAble
size_t audioBufferSize();
/// set clip state
void queuePlay();
void queuePlay(bool=true);
void queueStop();
void queueRecord();