fixed audio monitor regression

This commit is contained in:
itsmattkc
2019-01-22 12:57:00 +11:00
parent efc868d217
commit e7f05ff64b
5 changed files with 77 additions and 113 deletions
+1 -6
View File
@@ -693,7 +693,7 @@ void Effect::startEffect() {
void Effect::endEffect() {
if (bound) glslProgram->release();
bound = false;
bound = false;
}
void Effect::process_image(double, uint8_t *, uint8_t *, int){}
@@ -912,8 +912,3 @@ qint16 mix_audio_sample(qint16 a, qint16 b) {
mixed_sample = qMax(qMin(mixed_sample, static_cast<qint32>(INT16_MAX)), static_cast<qint32>(INT16_MIN));
return static_cast<qint16>(mixed_sample);
}
double log_volume(double linear) {
// expects a value between 0 and 1 (or more if amplifying)
return (qExp(linear)-1)/(M_E-1);
}