Fix file source rewind and read after it is finished

pull/85/head
Nonoo 2021-03-22 22:12:55 +01:00
rodzic 3b657484b2
commit ad579d514b
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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);
}