From 47f9a4733bd489c1aa7cf14ad840f7d116845bcf Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Fri, 10 Nov 2023 15:27:32 +0100 Subject: [PATCH] Consistently use double in the mixer This fixes a warning: INT32_MAX cannot be represented as a float. --- src/cubeb_mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cubeb_mixer.cpp b/src/cubeb_mixer.cpp index 74bab713..7f87571f 100644 --- a/src/cubeb_mixer.cpp +++ b/src/cubeb_mixer.cpp @@ -183,7 +183,7 @@ MixerContext::auto_matrix() { double matrix[NUM_NAMED_CHANNELS][NUM_NAMED_CHANNELS] = {{0}}; double maxcoef = 0; - float maxval; + double maxval; cubeb_channel_layout in_ch_layout = clean_layout(_in_ch_layout); cubeb_channel_layout out_ch_layout = clean_layout(_out_ch_layout);