From 1ae1cc0e77d654eb561a7b36ea0339a9b22b2ac1 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Mon, 9 Jan 2023 05:51:58 +0100 Subject: [PATCH] Fixed missing samplerate update in new recorder --- misc_modules/recorder/src/wav.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +}