diff main/OSCHandler.cpp @ 1386:05d35ce6ea72 levelpanwidget

Start incorporating level-pan widgets
author Chris Cannam
date Mon, 05 Dec 2016 15:47:40 +0000
parents 28ccb621d1af
children f013210eeceb
line wrap: on
line diff
--- a/main/OSCHandler.cpp	Mon Dec 05 14:51:25 2016 +0000
+++ b/main/OSCHandler.cpp	Mon Dec 05 15:47:40 2016 +0000
@@ -26,7 +26,7 @@
 #include "framework/Document.h"
 #include "data/fileio/WavFileWriter.h"
 #include "transform/TransformFactory.h"
-#include "widgets/Fader.h"
+#include "widgets/LevelPanWidget.h"
 #include "widgets/AudioDial.h"
 
 #include <bqaudioio/SystemPlaybackTarget.h>
@@ -342,7 +342,7 @@
 
             if (property == "gain") {
                 if (value < 0.0) value = 0.0;
-                m_fader->setValue(value);
+                m_mainLevelPan->setLevel(value);
                 if (m_playTarget) m_playTarget->setOutputGain(value);
             } else if (property == "speedup") {
                 m_playSpeed->setMappedValue(value);