diff --git a/misc_modules/recorder/src/wav.cpp b/misc_modules/recorder/src/wav.cpp index bd545755..f78caf9e 100644 --- a/misc_modules/recorder/src/wav.cpp +++ b/misc_modules/recorder/src/wav.cpp @@ -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; } -} \ No newline at end of file +}