mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-27 10:04:44 +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);
|
file.read(_data, size);
|
||||||
int read = file.gcount();
|
int read = file.gcount();
|
||||||
if (read < size) {
|
if (read < size) {
|
||||||
|
file.clear();
|
||||||
file.seekg(sizeof(WavHeader_t));
|
file.seekg(sizeof(WavHeader_t));
|
||||||
file.read(&_data[read], size - read);
|
file.read(&_data[read], size - read);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user