mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 12:47:40 +01:00
Fix file source rewind and read after it is finished
This commit is contained in:
parent
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user