1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-04-04 18:48:34 -04:00

DATV: reset data count when framework is restarted

This commit is contained in:
f4exb 2021-03-14 07:57:55 +01:00
parent 6bf797ab6d
commit 4ff5d7d76d
4 changed files with 12 additions and 1 deletions

View File

@ -344,7 +344,7 @@ void DATVDemodGUI::displaySettings()
ui->cmbFilter->setCurrentIndex((int) m_settings.m_filter);
displayRRCParameters(((int) m_settings.m_filter == 2));
ui->spiRollOff->setValue((int) (m_settings.m_rollOff * 100.0f));
ui->spiRollOff->setValue((int) roundf(m_settings.m_rollOff * 100.0f));
ui->audioMute->setChecked(m_settings.m_audioMute);
displaySystemConfiguration();
ui->cmbStandard->setCurrentIndex((int) m_settings.m_standard);

View File

@ -569,6 +569,8 @@ void DATVDemodSink::InitDATVFramework()
m_objCfg.rrc_rej = (float) m_settings.m_excursion; //dB
m_objCfg.rrc_steps = 0; //auto
m_objVideoStream->resetTotalReceived();
switch(m_settings.m_modulation)
{
case DATVDemodSettings::BPSK:
@ -906,6 +908,8 @@ void DATVDemodSink::InitDATVS2Framework()
m_objCfg.rrc_rej = (float) m_settings.m_excursion; //dB
m_objCfg.rrc_steps = 0; //auto
m_objVideoStream->resetTotalReceived();
switch(m_settings.m_modulation)
{
case DATVDemodSettings::BPSK:

View File

@ -65,6 +65,12 @@ bool DATVideostream::setMemoryLimit(int intMemoryLimit)
return true;
}
void DATVideostream::resetTotalReceived()
{
m_intTotalReceived = 0;
emit onDataPackets(&m_intQueueWaiting, &m_intBytesWaiting, &m_intPercentBuffer, &m_intTotalReceived);
}
int DATVideostream::pushData(const char * chrData, int intSize)
{
if (intSize <= 0) {

View File

@ -42,6 +42,7 @@ public:
int pushData(const char * chrData, int intSize);
bool setMemoryLimit(int intMemoryLimit);
void resetTotalReceived();
virtual bool isSequential() const;
virtual qint64 bytesAvailable() const;