mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
-Fixed GridLogic / LooperClip multiple scene launch issue
This commit is contained in:
parent
076727dd7b
commit
ae92ed27b9
3 changed files with 24 additions and 7 deletions
|
@ -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() );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue