aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2023-11-10 15:27:32 +0100
committerPaul Adenot <[email protected]>2023-11-10 15:32:03 +0100
commit47f9a4733bd489c1aa7cf14ad840f7d116845bcf (patch)
treeafd84768fff7e14d1c68e23236188376d318d58f
parent28eed05dd57c7645e89b7ab364490223d21ed6cd (diff)
downloadcubeb-47f9a4733bd489c1aa7cf14ad840f7d116845bcf.tar.gz
cubeb-47f9a4733bd489c1aa7cf14ad840f7d116845bcf.zip
Consistently use double in the mixer
This fixes a warning: INT32_MAX cannot be represented as a float.
-rw-r--r--src/cubeb_mixer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cubeb_mixer.cpp b/src/cubeb_mixer.cpp
index 74bab71..7f87571 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);