summaryrefslogtreecommitdiff
path: root/dgedit/mainwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dgedit/mainwindow.cc')
-rw-r--r--dgedit/mainwindow.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/dgedit/mainwindow.cc b/dgedit/mainwindow.cc
index 412cd32..82eaaa6 100644
--- a/dgedit/mainwindow.cc
+++ b/dgedit/mainwindow.cc
@@ -73,8 +73,11 @@ MainWindow::MainWindow()
extractor = new AudioExtractor(session, this);
canvas = new Canvas(this);
+ player = new Player(canvas);
+ player->start();
+
QToolBar *toolbar = addToolBar("Tools");
- g_listen = new CanvasToolListen(canvas);
+ g_listen = new CanvasToolListen(canvas, *player);
CanvasTool *listen = g_listen;
addTool(toolbar, canvas, listen);
CanvasTool *threshold = new CanvasToolThreshold(canvas);
@@ -298,6 +301,11 @@ MainWindow::MainWindow()
statusBar()->showMessage("Ready");
}
+MainWindow::~MainWindow()
+{
+ delete player;
+}
+
void MainWindow::setAttackLengthLineEd(int value)
{
lineed_attacklength->setText(QString::number(value));