diff options
author | Thom Johansen <thomj@rockbox.org> | 2007-11-18 23:17:25 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2007-11-18 23:17:25 +0000 |
commit | c31818ccf0d7acadb91e95ba02980ced209489e0 (patch) | |
tree | 5342137633a5ee1414963d7f12c0764a79fdc7d8 /apps/codecs/libspeex/nb_celp.c | |
parent | c46de8ab734fa3a848056a7b69806859c4b582df (diff) | |
download | rockbox-c31818ccf0d7acadb91e95ba02980ced209489e0.tar.gz rockbox-c31818ccf0d7acadb91e95ba02980ced209489e0.zip |
Disable some UWB mode stuff and lost package handling in voice codec.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15676 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libspeex/nb_celp.c')
-rw-r--r-- | apps/codecs/libspeex/nb_celp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/codecs/libspeex/nb_celp.c b/apps/codecs/libspeex/nb_celp.c index 49e2403d8b..9ddac46f37 100644 --- a/apps/codecs/libspeex/nb_celp.c +++ b/apps/codecs/libspeex/nb_celp.c @@ -1032,6 +1032,7 @@ const spx_word16_t attenuation[10] = {1., 0.961, 0.852, 0.698, 0.527, 0.368, 0.2 #endif +#ifndef ROCKBOX_VOICE_CODEC static void nb_decode_lost(DecState *st, spx_word16_t *out, char *stack) { int i; @@ -1093,6 +1094,7 @@ static void nb_decode_lost(DecState *st, spx_word16_t *out, char *stack) if (st->pitch_gain_buf_idx > 2) /* rollover */ st->pitch_gain_buf_idx = 0; } +#endif /* Just so we don't need to carry the complete wideband mode information */ static const int wb_skip_table[8] = {0, 36, 112, 192, 352, 0, 0, 0}; @@ -1130,11 +1132,13 @@ int nb_decode(void *state, SpeexBits *bits, void *vout) } else { /* If bits is NULL, consider the packet to be lost (what could we do anyway) */ +#ifndef ROCKBOX_VOICE_CODEC if (!bits) { nb_decode_lost(st, out, stack); return 0; } +#endif if (st->encode_submode) { |