]> git.sesse.net Git - nageru/blob - mainwindow.cpp
Move all mixer stuff into a class.
[nageru] / mainwindow.cpp
1 #include "mainwindow.h"
2 #include "window.h"
3 #include <thread>
4
5 #include "context.h"
6 #include "mixer.h"
7
8 #include "ui_mainwindow.cpp"
9
10 using std::thread;
11
12 MainWindow::MainWindow()
13 {
14         Ui::MainWindow *ui = new Ui::MainWindow;
15         ui->setupUi(this);
16         connect(ui->cut_btn, SIGNAL(clicked()), this, SLOT(cut()));
17 }
18
19 void MainWindow::cut()
20 {
21         static int i = 0;
22         global_mixer->cut(Mixer::Source((++i) % 3));
23 }