]> git.sesse.net Git - nageru/blob - mainwindow.cpp
Hook up the preview window to a different chain.
[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         ui->me_live->set_output(Mixer::OUTPUT_LIVE);
19         ui->me_preview->set_output(Mixer::OUTPUT_PREVIEW);
20 }
21
22 void MainWindow::cut()
23 {
24         static int i = 0;
25         global_mixer->cut(Mixer::Source((++i) % 3));
26 }