parent
957a05665a
commit
1321979017
|
@ -717,7 +717,11 @@ void FurnaceGUI::drawChanOsc() {
|
|||
}
|
||||
if (j<0) continue;
|
||||
float yOut=y-fft->dcOff;
|
||||
if (!settings.audioHiPass) {
|
||||
fft->dcOff=0;
|
||||
} else {
|
||||
fft->dcOff+=(y-fft->dcOff)*0.001;
|
||||
}
|
||||
if (yOut<-0.5f) yOut=-0.5f;
|
||||
if (yOut>0.5f) yOut=0.5f;
|
||||
yOut*=chanOscAmplify*2.0f;
|
||||
|
@ -738,7 +742,11 @@ void FurnaceGUI::drawChanOsc() {
|
|||
}
|
||||
if (kTex<0) continue;
|
||||
float yOut=y-fft->dcOff;
|
||||
if (!settings.audioHiPass) {
|
||||
fft->dcOff=0;
|
||||
} else {
|
||||
fft->dcOff+=(y-fft->dcOff)*0.001;
|
||||
}
|
||||
if (yOut<-0.5f) yOut=-0.5f;
|
||||
if (yOut>0.5f) yOut=0.5f;
|
||||
yOut*=chanOscAmplify*2.0f;
|
||||
|
|
Loading…
Reference in a new issue