add sample preview volume setting

it was too loud
This commit is contained in:
tildearrow 2023-09-11 16:04:19 -05:00
parent 41bd28c41a
commit 41544bcced
5 changed files with 31 additions and 2 deletions

View file

@ -2202,7 +2202,7 @@ void DivEngine::nextBuf(float** in, float** out, int inChans, int outChans, unsi
} else if (srcPortSet==0xffd) {
// sample preview
for (size_t j=0; j<size; j++) {
out[destSubPort][j]+=samp_bbOut[j]/32768.0;
out[destSubPort][j]+=previewVol*(samp_bbOut[j]/32768.0);
}
} else if (srcPortSet==0xffe && playing && !halted) {
// metronome