fixed bug introduced in recorder by the last commit

This commit is contained in:
Ryzerth
2021-03-21 23:53:45 +01:00
parent 5e9486ef4c
commit eff9cd4b71
3 changed files with 23 additions and 11 deletions

View File

@@ -26,6 +26,10 @@ public:
file.write((char*)&hdr, sizeof(WavHeader_t));
}
bool isOpen() {
return file.is_open();
}
void writeSamples(void* data, size_t size) {
file.write((char*)data, size);
bytesWritten += size;