mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -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)
|
if(clips[clip]->getBeatsToRecord() > 0 && clips[clip]->getBeats() >= clips[clip]->getBeatsToRecord() - 4)
|
||||||
clips[clip]->queuePlay(true);
|
clips[clip]->queuePlay(true);
|
||||||
|
|
||||||
|
|
||||||
if ( clips[clip]->recordSpaceAvailable() < LOOPER_SAMPLES_BEFORE_REQUEST &&
|
if ( clips[clip]->recordSpaceAvailable() < LOOPER_SAMPLES_BEFORE_REQUEST &&
|
||||||
!clips[clip]->newBufferInTransit() ) {
|
!clips[clip]->newBufferInTransit() ) {
|
||||||
EventLooperClipRequestBuffer e( track, clip, clips[clip]->audioBufferSize() + LOOPER_SAMPLES_UPDATE_SIZE);
|
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
|
///reset the play head to zero. Does nothing when recording
|
||||||
void setPlayHead(float ph);
|
void setPlayHead(float ph);
|
||||||
|
|
||||||
|
// set how many beats to record (up to full bar)
|
||||||
void setBarsToRecord(int bars);
|
void setBarsToRecord(int bars);
|
||||||
int getBeatsToRecord();
|
int getBeatsToRecord();
|
||||||
int getBarsToRecord();
|
int getBarsToRecord();
|
||||||
|
@ -145,6 +146,7 @@ private:
|
||||||
float _playhead;
|
float _playhead;
|
||||||
float _recordhead;
|
float _recordhead;
|
||||||
int _wantedBeats;
|
int _wantedBeats;
|
||||||
|
|
||||||
AudioBuffer* _buffer;
|
AudioBuffer* _buffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue