summaryrefslogtreecommitdiff
path: root/celt/dump_modes
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2013-12-29 13:34:17 -0500
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-12-29 13:34:17 -0500
commite1dc1e22384e6b632d7a8f9d54a0e693ebc77624 (patch)
tree0d30e721c2c1967968d605454580f9a4765dfd07 /celt/dump_modes
parentdbb96ab5cc42491167e063cadc90e420c53b08be (diff)
downloadopus-e1dc1e22384e6b632d7a8f9d54a0e693ebc77624.tar.gz
Unifying scaling of fixed-point and float FFT
Diffstat (limited to 'celt/dump_modes')
-rw-r--r--celt/dump_modes/dump_modes.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/celt/dump_modes/dump_modes.c b/celt/dump_modes/dump_modes.c
index c2c58090..4759ae1e 100644
--- a/celt/dump_modes/dump_modes.c
+++ b/celt/dump_modes/dump_modes.c
@@ -172,8 +172,9 @@ void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
fprintf (file, "static const kiss_fft_state fft_state%d_%d_%d = {\n",
mode->Fs, mdctSize, k);
fprintf (file, "%d,\t/* nfft */\n", mode->mdct.kfft[k]->nfft);
-#ifndef FIXED_POINT
- fprintf (file, "%0.9ff,\t/* scale */\n", mode->mdct.kfft[k]->scale);
+ fprintf (file, WORD16 ",\t/* scale */\n", mode->mdct.kfft[k]->scale);
+#ifdef FIXED_POINT
+ fprintf (file, "%d,\t/* scale_shift */\n", mode->mdct.kfft[k]->scale_shift);
#endif
fprintf (file, "%d,\t/* shift */\n", mode->mdct.kfft[k]->shift);
fprintf (file, "{");