summaryrefslogtreecommitdiff
path: root/dgedit/mainwindow.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-04-15 12:18:12 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-04-15 12:18:12 +0200
commit12b62ca84abab622889363b9b9f3215d52eb5167 (patch)
tree3b649cec0efd1566355cf9628d3ef13b19bbc675 /dgedit/mainwindow.cc
parent0fcacc1c3329e905228ceb80903f69561a7db732 (diff)
Player interface changes. Player moved to MainWindow for easier component sharing.
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));