mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
fix_merge
This commit is contained in:
commit
ea8f6b2be5
3 changed files with 8 additions and 5 deletions
|
@ -113,6 +113,7 @@ void Looper::process(unsigned int nframes, Buffers* buffers)
|
|||
if(clips[clip]->getBeatsToRecord() > 0 && clips[clip]->getBeats() >= clips[clip]->getBeatsToRecord() - 4)
|
||||
clips[clip]->queuePlay(true);
|
||||
|
||||
|
||||
if ( clips[clip]->recordSpaceAvailable() < LOOPER_SAMPLES_BEFORE_REQUEST &&
|
||||
!clips[clip]->newBufferInTransit() ) {
|
||||
EventLooperClipRequestBuffer e( track, clip, clips[clip]->audioBufferSize() + LOOPER_SAMPLES_UPDATE_SIZE);
|
||||
|
|
|
@ -116,6 +116,7 @@ public:
|
|||
///reset the play head to zero. Does nothing when recording
|
||||
void setPlayHead(float ph);
|
||||
|
||||
// set how many beats to record (up to full bar)
|
||||
void setBarsToRecord(int bars);
|
||||
int getBeatsToRecord();
|
||||
int getBarsToRecord();
|
||||
|
@ -145,6 +146,7 @@ private:
|
|||
float _playhead;
|
||||
float _recordhead;
|
||||
int _wantedBeats;
|
||||
|
||||
AudioBuffer* _buffer;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue