ref: 5bb3cbc34c532a92916612e2540f48470d03389c
parent: 352786c9cb247a8fba2370cc27478c2a0108f9c4
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Mon Jun 19 13:55:56 EDT 2017
Add "f" suffix to float constants
--- a/src/analysis.c
+++ b/src/analysis.c
@@ -269,7 +269,7 @@
tonality_avg += tonal->info[pos].tonality;
tonality_count++;
}
- info_out->tonality = MAX32(tonality_avg/tonality_count, tonality_max-.2);
+ info_out->tonality = MAX32(tonality_avg/tonality_count, tonality_max-.2f);
tonal->read_subframe += len/(tonal->Fs/400);
while (tonal->read_subframe>=8)
{
@@ -370,9 +370,9 @@
if (tonal->count<4) {
if (tonal->application == OPUS_APPLICATION_VOIP)
- tonal->music_prob = .1;
+ tonal->music_prob = .1f;
else
- tonal->music_prob = .625;
+ tonal->music_prob = .625f;
}
kfft = celt_mode->mdct.kfft[0];
if (tonal->count==0)
@@ -703,7 +703,7 @@
frame_stationarity /= NB_TBANDS;
relativeE /= NB_TBANDS;
if (tonal->count<10)
- relativeE = .5;
+ relativeE = .5f;
frame_noisiness /= NB_TBANDS;
#if 1
info->activity = frame_noisiness + (1-frame_noisiness)*relativeE;
@@ -833,9 +833,9 @@
if (tonal->count==1)
{
if (tonal->application == OPUS_APPLICATION_VOIP)
- tonal->pmusic[0] = .1;
+ tonal->pmusic[0] = .1f;
else
- tonal->pmusic[0] = .625;
+ tonal->pmusic[0] = .625f;
tonal->pspeech[0] = 1-tonal->pmusic[0];
}
/* Updated probability of having only speech (s0) or only music (m0),