From 8479c52b5c96ccb694242f27d1d13e7251d1c174 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Thu, 1 Feb 2024 16:03:24 +0100 Subject: [PATCH] fixed cmd number of output channels --- templates/cmd/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/cmd/src/main.c b/templates/cmd/src/main.c index 070df2e..8516243 100644 --- a/templates/cmd/src/main.c +++ b/templates/cmd/src/main.c @@ -435,7 +435,7 @@ int main(int argc, char * argv[]) { #if NUM_CHANNELS_OUT > 0 TinyWav tw_out; - if (tinywav_open_write(&tw_out, 1, fs, TW_FLOAT32, TW_SPLIT, outfile) != 0) + if (tinywav_open_write(&tw_out, NUM_CHANNELS_OUT, fs, TW_FLOAT32, TW_SPLIT, outfile) != 0) goto err_outfile; #endif