This commit is contained in:
AlexandreRouma
2023-01-13 17:11:23 +01:00
3 changed files with 6 additions and 6 deletions

View File

@ -130,6 +130,7 @@ namespace wav {
// Validate samplerate
if (!samplerate) { throw std::runtime_error("Samplerate must be non-zero"); }
_samplerate = samplerate;
}
void Writer::setFormat(Format format) {
@ -179,4 +180,4 @@ namespace wav {
// Increment sample counter
samplesWritten += count;
}
}
}