1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 07:23:38 -04:00

File Input and record: 16/24 bit DSP compatibility: bug fixes

This commit is contained in:
f4exb
2018-01-25 23:52:36 +01:00
parent 12a97b9644
commit cc1033b3c5
6 changed files with 55 additions and 5 deletions
+2 -1
View File
@@ -136,7 +136,8 @@ void FileRecord::readHeader(std::ifstream& sampleFile, Header& header)
sampleFile.read((char *) &(header.centerFrequency), sizeof(quint64));
sampleFile.read((char *) &(header.startTimeStamp), sizeof(std::time_t));
sampleFile.read((char *) &(header.sampleSize), sizeof(quint32));
if ((header.sampleSize != 16) || (header.sampleSize != 24)) { // assume 16 bits if garbage (old I/Q file)
if ((header.sampleSize != 16) && (header.sampleSize != 24)) { // assume 16 bits if garbage (old I/Q file)
header.sampleSize = 16;
}
qDebug("FileRecord::readHeader: sampleSize: %u", header.sampleSize);
}