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/sb_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/sb_celp.c')
-rw-r--r-- | apps/codecs/libspeex/sb_celp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/codecs/libspeex/sb_celp.c b/apps/codecs/libspeex/sb_celp.c index b12ca71f4b..424d590b89 100644 --- a/apps/codecs/libspeex/sb_celp.c +++ b/apps/codecs/libspeex/sb_celp.c @@ -844,6 +844,7 @@ void sb_decoder_destroy(void *state) */ } +#ifndef ROCKBOX_VOICE_CODEC static void sb_decode_lost(SBDecState *st, spx_word16_t *out, int dtx, char *stack) { int i; @@ -881,6 +882,7 @@ static void sb_decode_lost(SBDecState *st, spx_word16_t *out, int dtx, char *sta return; } +#endif int sb_decode(void *state, SpeexBits *bits, void *vout) { @@ -917,11 +919,13 @@ int sb_decode(void *state, SpeexBits *bits, void *vout) return ret; } +#ifndef ROCKBOX_VOICE_CODEC if (!bits) { sb_decode_lost(st, out, dtx, stack); return 0; } +#endif if (st->encode_submode) { @@ -951,11 +955,13 @@ int sb_decode(void *state, SpeexBits *bits, void *vout) /* If null mode (no transmission), just set a couple things to zero*/ if (st->submodes[st->submodeID] == NULL) { +#ifndef ROCKBOX_VOICE_CODEC if (dtx) { sb_decode_lost(st, out, 1, stack); return 0; } +#endif for (i=0;i<st->frame_size;i++) out[st->frame_size+i]=VERY_SMALL; |