From 3a5da13910ec0eccf439d8b3a9f6728d127dc1b8 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 21 Feb 2018 11:50:28 +0100 Subject: Correct wav header write --- src/wavfile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wavfile.h') diff --git a/src/wavfile.h b/src/wavfile.h index a8cd4d9..6d68053 100644 --- a/src/wavfile.h +++ b/src/wavfile.h @@ -1,6 +1,6 @@ /* ------------------------------------------------------------------ * Copyright (C) 2009 Martin Storsjo - * Copyright (C) 2017 Matthias P. Braendli + * Copyright (C) 2018 Matthias P. Braendli * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ class WavWriter { WavWriter(const WavWriter& other) = delete; WavWriter& operator=(const WavWriter& other) = delete; - void initialise_header(int rate); + void initialise_header(int rate, int channels); void write_data(const uint8_t *data, int length); -- cgit v1.2.3