Make state set functions private
parent
db1b94d78c
commit
7412bb49df
|
@ -314,26 +314,34 @@ bool LooperClip::somethingQueued()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LooperClip::queuePlay(bool qP)
|
void LooperClip::queuePlay()
|
||||||
{
|
{
|
||||||
_queuePlay = true;
|
if (_loaded && !somethingQueued())
|
||||||
_queueStop = false;
|
{
|
||||||
_queueRecord = false;
|
_queuePlay = true;
|
||||||
|
_queueStop = false;
|
||||||
|
_queueRecord = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LooperClip::queueStop()
|
void LooperClip::queueStop()
|
||||||
{
|
{
|
||||||
if ( _loaded ) {
|
if (_loaded && _playing && !somethingQueued())
|
||||||
_queueStop = true;
|
{
|
||||||
_queuePlay = false;
|
_queuePlay = false;
|
||||||
|
_queueStop = true;
|
||||||
|
_queueRecord = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LooperClip::queueRecord()
|
void LooperClip::queueRecord()
|
||||||
{
|
{
|
||||||
_queueRecord = true;
|
if (!_loaded && !somethingQueued())
|
||||||
_queuePlay = false;
|
{
|
||||||
_queueStop = false;
|
_queuePlay = false;
|
||||||
|
_queueStop = false;
|
||||||
|
_queueRecord = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LooperClip::setRecording()
|
void LooperClip::setRecording()
|
||||||
|
|
|
@ -84,14 +84,10 @@ public:
|
||||||
size_t audioBufferSize();
|
size_t audioBufferSize();
|
||||||
|
|
||||||
/// set clip state
|
/// set clip state
|
||||||
void queuePlay(bool=true);
|
void queuePlay();
|
||||||
void queueStop();
|
void queueStop();
|
||||||
void queueRecord();
|
void queueRecord();
|
||||||
|
|
||||||
void setPlaying();
|
|
||||||
void setRecording();
|
|
||||||
void setStopped();
|
|
||||||
|
|
||||||
void resetQueues(); // removes all queued States
|
void resetQueues(); // removes all queued States
|
||||||
bool somethingQueued(); // returns true if any state is queued
|
bool somethingQueued(); // returns true if any state is queued
|
||||||
|
|
||||||
|
@ -142,6 +138,11 @@ private:
|
||||||
void newBufferInTransit(bool n);
|
void newBufferInTransit(bool n);
|
||||||
bool newBufferInTransit();
|
bool newBufferInTransit();
|
||||||
unsigned long recordSpaceAvailable();
|
unsigned long recordSpaceAvailable();
|
||||||
|
|
||||||
|
void setPlaying();
|
||||||
|
void setRecording();
|
||||||
|
void setStopped();
|
||||||
|
void setEmpty();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LUPPP_LOOPER_CLIP_H
|
#endif // LUPPP_LOOPER_CLIP_H
|
||||||
|
|
Loading…
Reference in New Issue