Work in progress toward "Export .wav file".

This commit is contained in:
Joe Taylor
2024-01-20 15:02:51 -05:00
parent 4ec84087c7
commit adc0345ef3
6 changed files with 48 additions and 19 deletions
+9 -1
View File
@@ -192,7 +192,6 @@ MainWindow::~MainWindow()
soundInThread.quit();
soundInThread.wait(3000);
}
// fftwf_export_wisdom_to_filename (QDir {m_appDir}.absoluteFilePath ("qmap_wisdom.dat").toLocal8Bit ());
delete ui;
}
@@ -951,6 +950,7 @@ void MainWindow::decode() //decode()
memcpy(savecom_.revision, m_revision.toLatin1(), len2);
memcpy(savecom_.saveFileName, m_saveFileName.toLatin1(),len1);
ui->actionExport_wav_file_at_fQSO->setEnabled(m_diskData);
watcher3.setFuture(QtConcurrent::run (q65c_));
decodeBusy(true);
}
@@ -1184,3 +1184,11 @@ void MainWindow::on_sbMaxDrift_valueChanged(int n)
if(n==5) ui->sbMaxDrift->setStyleSheet("QSpinBox { background-color: #ffff82; }");
if(n>=10) ui->sbMaxDrift->setStyleSheet("QSpinBox { background-color: #ffff00; }");
}
void MainWindow::on_actionExport_wav_file_at_fQSO_triggered()
{
qDebug() << "Export .wav file" << m_path;
datcom_.newdat=0;
datcom_.nagain=2;
decode();
}