kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
Fix file source rewind and read after it is finished
rodzic
3b657484b2
commit
ad579d514b
|
@ -43,6 +43,7 @@ public:
|
|||
file.read(_data, size);
|
||||
int read = file.gcount();
|
||||
if (read < size) {
|
||||
file.clear();
|
||||
file.seekg(sizeof(WavHeader_t));
|
||||
file.read(&_data[read], size - read);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue