fixed seeking with WAV and MP3 files and added mono/stereo recording options

This commit is contained in:
itsmattkc
2018-10-28 11:56:01 +11:00
parent d4692b9480
commit 97a8494347
9 changed files with 64 additions and 50 deletions
+7 -3
View File
@@ -25,6 +25,7 @@
#include <QPainter>
#include <QMenu>
#include <QInputDialog>
#include <QMessageBox>
long refactor_frame_number(long framenumber, double source_frame_rate, double target_frame_rate) {
if (source_frame_rate == target_frame_rate) return framenumber;
@@ -1155,7 +1156,10 @@ void Timeline::setScroll(int s) {
}
void Timeline::on_recordButton_clicked() {
creating = true;
creating_object = ADD_OBJ_AUDIO;
//qDebug() << "recording is a" << start_recording();
if (project_url.isEmpty()) {
QMessageBox::critical(this, "Unsaved Project", "You must save this project before you can record audio in it.", QMessageBox::Ok);
} else {
creating = true;
creating_object = ADD_OBJ_AUDIO;
}
}