diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-04-15 12:18:12 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-04-15 12:18:12 +0200 |
commit | 12b62ca84abab622889363b9b9f3215d52eb5167 (patch) | |
tree | 3b649cec0efd1566355cf9628d3ef13b19bbc675 /dgedit/mainwindow.cc | |
parent | 0fcacc1c3329e905228ceb80903f69561a7db732 (diff) |
Player interface changes. Player moved to MainWindow for easier component sharing.
Diffstat (limited to 'dgedit/mainwindow.cc')
-rw-r--r-- | dgedit/mainwindow.cc | 10 |
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)); |