<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I am using 1.2beta2 on a TI 54x, narrow band</DIV>
<DIV> </DIV>
<DIV>I changed all the speex dynamic allocation variables to static ones. It seems to work ok but when minor things change in the project it all goes to hell. I was hoping somebody could:</DIV>
<DIV> </DIV>
<DIV>a) verify that my sizes are correct or if they are too small</DIV>
<DIV> </DIV>
<DIV>b) Tell me if anything in the speex library is supposed to be aligned in any way in memory. I see there is an ALIGN define in one of the files for the stack but I am not entirely sure what that means (i'm inexperienced in C).</DIV>
<DIV> </DIV>
<DIV>here are all the sizes I use:</DIV>
<DIV> </DIV>
<DIV>#define ENC_WINBUF_SIZE 40<BR> #define ENC_EXCBUF_SIZE 306<BR> #define ENC_SWBUF_SIZE 306<BR> #define ENC_LAGWINDOW_SIZE 11<BR> #define ENC_OLD_LSP_SIZE 10<BR> #define ENC_OLD_QLSP_SIZE 10<BR> #define ENC_MEM_SP_SIZE 20<BR> #define ENC_MEM_SW_SIZE 20<BR> #define ENC_SW_WHOLE_SIZE 20<BR> #define ENC_MEM_EXC_SIZE 20<BR> #define ENC_MEM_EXC2_SIZE 20<BR> #define ENC_PI_GAIN_SIZE 8<BR> #define ENC_PITCH_SIZE 4</DIV>
<DIV> </DIV>
<DIV> #define DEC_EXCBUF_SIZE 500<BR> #define DEC_INTERP_QLPC_SIZE 10<BR> #define DEC_OLD_QLSP_SIZE 10<BR> #define DEC_MEM_SP_SIZE 20<BR> #define DEC_PI_GAIN_SIZE 8</DIV>
<DIV> </DIV>
<DIV>#define SPEEXENC_PERSIST_STACK_SIZE 5000<BR>#define SPEEXENC_SCRATCH_STACK_SIZE 1170<BR>#define SPEEXDEC_PERSIST_STACK_SIZE 2500<BR>#define SPEEXDEC_SCRATCH_STACK_SIZE 550</DIV>
<DIV> </DIV>
<DIV>Thank you</DIV>
<DIV> </DIV>
<DIV>-Mike</DIV></BODY></HTML>