This commit is contained in:
itsmattkc
2018-11-01 16:12:17 +11:00
parent 229674f5e2
commit 9f0ff7f561
14 changed files with 136 additions and 53 deletions
+11 -2
View File
@@ -164,13 +164,22 @@ void load_vst_effects() {
}
void init_effects() {
dout << "Starting init effect (TODO: multithread this)";
EffectInit* init_thread = new EffectInit();
QObject::connect(init_thread, SIGNAL(finished()), init_thread, SLOT(deleteLater()));
init_thread->start();
}
EffectInit::EffectInit() {
effects_loaded.lock();
}
void EffectInit::run() {
dout << "[INFO] Initializing effects...";
load_internal_effects();
load_shader_effects();
load_vst_effects();
effects_loaded.unlock();
dout << "Completed init effect (TODO: multithread this)";
dout << "[INFO] Finished initializing effects";
}
double double_lerp(double a, double b, double t) {
+8
View File
@@ -10,6 +10,7 @@
#include <QOpenGLTexture>
#include <QJSEngine>
#include <QMutex>
#include <QThread>
class QLabel;
class QWidget;
class CollapsibleWidget;
@@ -262,4 +263,11 @@ private:
int get_index_in_clip();
};
class EffectInit : public QThread {
public:
EffectInit();
protected:
void run();
};
#endif // EFFECT_H