diff --git a/mainwindow.cpp b/mainwindow.cpp index 20c3ddc81..33d5ee6f1 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -392,6 +392,7 @@ void MainWindow::dataSink(int k) static int ndiskdat; static int nwrite=0; static int k0=99999999; + static int n300z=9999; static float px=0.0; static float sq0=0.0; static float sqave=1000.0; @@ -446,20 +447,13 @@ void MainWindow::dataSink(int k) splot[i] /= n; //Normalize the average } -// Time according to this computer - qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000; - int n60 = (ms/1000) % 60; - if((m_diskData && ihsym <= m_waterfallAvg) || (!m_diskData && n60= (int)(29.5*48000) and nwrite==0) { + qDebug() << "dataSink" << k << n300 << nwrite; + if(n300 >= 295 and nwrite==0) { nwrite=1; if(m_saveAll) { QDateTime t = QDateTime::currentDateTimeUtc(); @@ -854,7 +848,7 @@ void MainWindow::diskDat() //diskDat() void MainWindow::diskWriteFinished() //diskWriteFinished { -// qDebug() << "diskWriteFinished"; + qDebug() << "diskWriteFinished"; } //Delete ../save/*.wav void MainWindow::on_actionDelete_all_wav_files_in_SaveDir_triggered() @@ -1169,6 +1163,7 @@ void MainWindow::guiUpdate() if(!soundOutThread.isRunning()) { soundOutThread.start(QThread::HighPriority); } + qDebug() << "PTT raised, soundOut started"; } if(!bTxTime || m_txMute) { btxok=false; diff --git a/soundin.cpp b/soundin.cpp index 734a321c8..bee5b0580 100644 --- a/soundin.cpp +++ b/soundin.cpp @@ -124,7 +124,7 @@ void SoundInThread::run() //SoundInThread::run() nBusy++; } else { // m_dataSinkBusy=true; -// qDebug() << "A" << k; +// qDebug() << "Calling dataSink" << k; emit readyForFFT(k); //Signal to compute new FFTs } nstep0=m_step; diff --git a/soundout.cpp b/soundout.cpp index 473fd8f64..c16a5d617 100644 --- a/soundout.cpp +++ b/soundout.cpp @@ -83,6 +83,7 @@ void SoundOutThread::run() } const PaStreamInfo* p=Pa_GetStreamInfo(outStream); outputLatency = p->outputLatency; + qDebug() << "SoundOut started, latency =" << outputLatency; bool qe = quitExecution; //---------------------------------------------- Soundcard output loop @@ -96,6 +97,7 @@ void SoundOutThread::run() } Pa_StopStream(outStream); Pa_CloseStream(outStream); + qDebug() << "SoundOut terminated"; } void SoundOutThread::setOutputDevice(int n) //setOutputDevice()