fix_merge

This commit is contained in:
Valentin Boettcher 2018-03-26 19:31:28 +02:00
commit ea8f6b2be5
3 changed files with 8 additions and 5 deletions

View file

@ -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);

View file

@ -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;
};