diff options
author | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2006-12-02 15:23:05 +0300 |
---|---|---|
committer | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2006-12-02 15:23:05 +0300 |
commit | 32accf86c4f83b28e8498b957cd09df6a7c7be6f (patch) | |
tree | ce86f76fcd877e82248bdaaaedd2b1c50eea7a63 /libspeex/nb_celp.c | |
parent | 0e57e309a94efe8a6de7ba752f2405d96e5d8709 (diff) |
Got rid of the excitation memory in the decoder and changed the relevant vars
to 16-bit. Last but not least, fixed-point in uwb has been unb0rked.
git-svn-id: http://svn.xiph.org/trunk/speex@12164 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'libspeex/nb_celp.c')
-rw-r--r-- | libspeex/nb_celp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libspeex/nb_celp.c b/libspeex/nb_celp.c index f70b7da..605e71e 100644 --- a/libspeex/nb_celp.c +++ b/libspeex/nb_celp.c @@ -2035,9 +2035,8 @@ int nb_decoder_ctl(void *state, int request, void *ptr) case SPEEX_GET_EXC: { int i; - spx_word16_t *e = (spx_word16_t*)ptr; - for (i=0;i<st->frameSize;i++) - e[i]=st->exc[i]; + for (i=0;i<st->nbSubframes;i++) + ((spx_word16_t*)ptr)[i] = compute_rms16(st->exc+i*st->subframeSize, st->subframeSize); } break; case SPEEX_GET_DTX_STATUS: |