1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-03-30 19:55:52 -04:00

SigMF recorder: added possiblity to have a time shift at record start

This commit is contained in:
f4exb 2020-07-17 05:30:15 +02:00
parent 1669920abe
commit 2fa56d7736
2 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,7 @@ SigMFFileRecord::SigMFFileRecord() :
m_fileName("test"),
m_sampleRate(0),
m_centerFrequency(0),
m_msShift(0),
m_recordOn(false),
m_recordStart(true),
m_sampleStart(0),
@ -126,7 +127,7 @@ void SigMFFileRecord::startRecording()
qDebug("SigMFFileRecord::startRecording: start new capture");
}
m_captureStartDT = QDateTime::currentDateTimeUtc();
m_captureStartDT = QDateTime::currentDateTimeUtc().addMSecs(m_msShift);
m_recordOn = true;
m_sampleCount = 0;
}

View File

@ -50,6 +50,7 @@ public:
virtual bool isRecording() const { return m_recordOn; }
void setHardwareId(const QString& hardwareId) { m_hardwareId = hardwareId; }
void setMsShift(qint64 msShift) { m_msShift = msShift; }
unsigned int getNbCaptures() const;
private:
@ -59,6 +60,7 @@ private:
QString m_metaFileName;
quint32 m_sampleRate;
quint64 m_centerFrequency;
qint64 m_msShift;
bool m_recordOn;
bool m_recordStart;
QDateTime m_captureStartDT;