Fixed missing samplerate update in new recorder

pull/963/head
AlexandreRouma 2023-01-09 05:51:58 +01:00 zatwierdzone przez GitHub
rodzic 55db98d1df
commit 1ae1cc0e77
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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