]> git.sesse.net Git - nageru/blobdiff - mainwindow.cpp
Hook up a third input, the SBS mix. Required hooking up ResizeEffect.
[nageru] / mainwindow.cpp
index b8d9e67a9461cb81394645088e30fa95737abcb5..bac1f3176189874f104424a38bebe6d4acf3c063 100644 (file)
@@ -14,10 +14,17 @@ MainWindow::MainWindow()
        Ui::MainWindow *ui = new Ui::MainWindow;
        ui->setupUi(this);
        connect(ui->cut_btn, SIGNAL(clicked()), this, SLOT(cut()));
+
+       ui->me_live->set_output(Mixer::OUTPUT_LIVE);
+       ui->me_preview->set_output(Mixer::OUTPUT_PREVIEW);
+
+       // TODO: Ask for the real number.
+       ui->preview1->set_output(Mixer::OUTPUT_INPUT0);
+       ui->preview2->set_output(Mixer::OUTPUT_INPUT1);
+       ui->preview3->set_output(Mixer::OUTPUT_INPUT2);
 }
 
 void MainWindow::cut()
 {
-       static int i = 0;
-       mixer_cut(Source((++i) % 3));
+       global_mixer->transition_clicked(0);  // FIXME: real value
 }