mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-29 04:42:28 -04:00
Merge branch 'feat-ft2' of bitbucket.org:k1jt/wsjtx into feat-ft2
This commit is contained in:
commit
134da155b6
@ -319,6 +319,12 @@ qint64 Modulator::readData (char * data, qint64 maxSize)
|
|||||||
// done for this chunk - continue on next call
|
// done for this chunk - continue on next call
|
||||||
// qint64 ms1=QDateTime::currentMSecsSinceEpoch() - m_ms0;
|
// qint64 ms1=QDateTime::currentMSecsSinceEpoch() - m_ms0;
|
||||||
// if(m_ic>=4*144*160) qDebug() << "Modulator finished" << m_ic << 0.001*ms1;
|
// if(m_ic>=4*144*160) qDebug() << "Modulator finished" << m_ic << 0.001*ms1;
|
||||||
|
|
||||||
|
while (samples != end) // pad block with silence
|
||||||
|
{
|
||||||
|
samples = load (0, samples);
|
||||||
|
++framesGenerated;
|
||||||
|
}
|
||||||
return framesGenerated * bytesPerFrame ();
|
return framesGenerated * bytesPerFrame ();
|
||||||
}
|
}
|
||||||
// fall through
|
// fall through
|
||||||
|
@ -101,7 +101,7 @@ void SoundOutput::restart (QIODevice * source)
|
|||||||
m_stream->setBufferSize (m_stream->format().bytesForDuration((m_msBuffered ? m_msBuffered : MS_BUFFERED) * 1000));
|
m_stream->setBufferSize (m_stream->format().bytesForDuration((m_msBuffered ? m_msBuffered : MS_BUFFERED) * 1000));
|
||||||
// qDebug() << "B" << m_stream->bufferSize() <<
|
// qDebug() << "B" << m_stream->bufferSize() <<
|
||||||
// m_stream->periodSize() << m_stream->notifyInterval();
|
// m_stream->periodSize() << m_stream->notifyInterval();
|
||||||
|
m_stream->setCategory ("production");
|
||||||
m_stream->start (source);
|
m_stream->start (source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user