don't draw thumbnails if there's no room

This commit is contained in:
itsmattkc
2018-06-18 17:27:12 -07:00
parent dc8d4728fc
commit 14077c8975
9 changed files with 374 additions and 369 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
#include <QGridLayout>
#include <QSpinBox>
#include <QLabel>
#include <cmath>
#include "ui/collapsiblewidget.h"
@@ -53,7 +54,7 @@ void PanEffect::process_audio(quint8 *samples, int nb_bytes) {
float val = pan_val->value()*0.01;
if (val < 0) {
// affect right channel
right_sample *= (1-abs(val));
right_sample *= (1-std::abs(val));
} else {
// affect left channel
left_sample *= (1-val);