Skip to content

Commit

Permalink
Consistently use double in the mixer
Browse files Browse the repository at this point in the history
This fixes a warning: INT32_MAX cannot be represented as a float.
  • Loading branch information
padenot committed Nov 10, 2023
1 parent 28eed05 commit 47f9a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cubeb_mixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 47f9a47

Please sign in to comment.