mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-16 04:38:43 -04:00
Merge branch 'develop' into feat-fst280
This commit is contained in:
@@ -105,7 +105,14 @@ void Modulator::start (QString mode, unsigned symbolsLength, double framesPerSym
|
||||
// qDebug() << "delay_ms:" << delay_ms << "mstr:" << mstr << "m_silentFrames:" << m_silentFrames << "m_ic:" << m_ic << "m_state:" << m_state;
|
||||
|
||||
m_stream = stream;
|
||||
if (m_stream) m_stream->restart (this);
|
||||
if (m_stream)
|
||||
{
|
||||
m_stream->restart (this);
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug () << "Modulator::start: no audio output stream assigned";
|
||||
}
|
||||
}
|
||||
|
||||
void Modulator::tune (bool newState)
|
||||
@@ -172,15 +179,12 @@ qint64 Modulator::readData (char * data, qint64 maxSize)
|
||||
{
|
||||
samples = load (0, samples); // silence
|
||||
} while (--m_silentFrames && samples != end);
|
||||
qDebug () << "played:" << framesGenerated << "silent frames";
|
||||
if (!m_silentFrames)
|
||||
{
|
||||
Q_EMIT stateChanged ((m_state = Active));
|
||||
}
|
||||
}
|
||||
|
||||
// qDebug() << "m_silentFrames:" << m_silentFrames << "m_ic:" << m_ic << "m_state:" << m_state;
|
||||
|
||||
m_cwLevel = false;
|
||||
m_ramp = 0; // prepare for CW wave shaping
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user