Small cleanup
parent
d8c639abf4
commit
71feed4220
|
@ -53,9 +53,7 @@ void LooperClip::init()
|
||||||
_playing = false;
|
_playing = false;
|
||||||
_recording = false;
|
_recording = false;
|
||||||
|
|
||||||
_queuePlay = false;
|
resetQueues();
|
||||||
_queueStop = false;
|
|
||||||
_queueRecord= false;
|
|
||||||
|
|
||||||
if ( _buffer ) {
|
if ( _buffer ) {
|
||||||
_buffer->init();
|
_buffer->init();
|
||||||
|
@ -66,7 +64,7 @@ void LooperClip::init()
|
||||||
_recordhead = 0;
|
_recordhead = 0;
|
||||||
|
|
||||||
_barsPlayed = 0;
|
_barsPlayed = 0;
|
||||||
|
updateController();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LooperClip::save()
|
void LooperClip::save()
|
||||||
|
@ -224,7 +222,6 @@ void LooperClip::record(int count, float* L, float* R)
|
||||||
unsigned long LooperClip::recordSpaceAvailable()
|
unsigned long LooperClip::recordSpaceAvailable()
|
||||||
{
|
{
|
||||||
if ( _buffer )
|
if ( _buffer )
|
||||||
// getData() contains L and R buffer, so it is twice the size
|
|
||||||
return _buffer->getSize() - _recordhead;
|
return _buffer->getSize() - _recordhead;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -353,9 +350,7 @@ void LooperClip::setRecording()
|
||||||
_playing = false;
|
_playing = false;
|
||||||
_recording = true;
|
_recording = true;
|
||||||
|
|
||||||
_queuePlay = false;
|
resetQueues();
|
||||||
_queueStop = false;
|
|
||||||
_queueRecord= false;
|
|
||||||
|
|
||||||
_recordhead = 0;
|
_recordhead = 0;
|
||||||
|
|
||||||
|
@ -372,9 +367,7 @@ void LooperClip::setPlaying()
|
||||||
_playing = true;
|
_playing = true;
|
||||||
_recording = false;
|
_recording = false;
|
||||||
|
|
||||||
_queuePlay = false;
|
resetQueues();
|
||||||
_queueStop = false;
|
|
||||||
_queueRecord= false;
|
|
||||||
|
|
||||||
_barsPlayed = 0;
|
_barsPlayed = 0;
|
||||||
_playhead = 0;
|
_playhead = 0;
|
||||||
|
@ -390,9 +383,7 @@ void LooperClip::setStopped()
|
||||||
_playing = false;
|
_playing = false;
|
||||||
_recording = false;
|
_recording = false;
|
||||||
|
|
||||||
_queuePlay = false;
|
resetQueues();
|
||||||
_queueStop = false;
|
|
||||||
_queueRecord= false;
|
|
||||||
|
|
||||||
_barsPlayed = 0;
|
_barsPlayed = 0;
|
||||||
_playhead = 0;
|
_playhead = 0;
|
||||||
|
|
|
@ -142,7 +142,6 @@ private:
|
||||||
void setPlaying();
|
void setPlaying();
|
||||||
void setRecording();
|
void setRecording();
|
||||||
void setStopped();
|
void setStopped();
|
||||||
void setEmpty();
|
|
||||||
|
|
||||||
void updateController();
|
void updateController();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue