From 32accf86c4f83b28e8498b957cd09df6a7c7be6f Mon Sep 17 00:00:00 2001 From: jm Date: Sat, 2 Dec 2006 12:23:05 +0000 Subject: 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 --- libspeex/nb_celp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libspeex/nb_celp.c') 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;iframeSize;i++) - e[i]=st->exc[i]; + for (i=0;inbSubframes;i++) + ((spx_word16_t*)ptr)[i] = compute_rms16(st->exc+i*st->subframeSize, st->subframeSize); } break; case SPEEX_GET_DTX_STATUS: -- cgit v1.2.3