set the volume for recording the right way

main
Georg Krause 2018-05-09 10:02:45 +02:00
parent 049ee5b191
commit c917e9497c
1 changed files with 8 additions and 2 deletions

View File

@ -118,8 +118,14 @@ void Looper::process(unsigned int nframes, Buffers* buffers)
}
// copy data from input buffer to recording buffer
float* inputL = buffers->audio[Buffers::MASTER_INPUT_L] * jack->getInputVolume;
float* inputR = buffers->audio[Buffers::MASTER_INPUT_R] * jack->getInputVolume;
float* inputL = buffers->audio[Buffers::MASTER_INPUT_L];
float* inputR = buffers->audio[Buffers::MASTER_INPUT_R];
for (unsigned int i = 0; i < nframes; i++ ) {
inputL[i] *= jack->getInputVolume();
inputR[i] *= jack->getInputVolume();
}
clips[clip]->record( nframes, inputL, inputR);
} else if ( clips[clip]->playing() ) {
// copy data into tmpBuffer, then pitch-stretch into track buffer