mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 21:20:31 -05:00 
			
		
		
		
	DATV: reset data count when framework is restarted
This commit is contained in:
		
							parent
							
								
									6bf797ab6d
								
							
						
					
					
						commit
						4ff5d7d76d
					
				@ -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);
 | 
			
		||||
 | 
			
		||||
@ -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:
 | 
			
		||||
 | 
			
		||||
@ -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) {
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user