<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>&nbsp;</DIV>
<DIV>I am using 1.2beta2 on a TI 54x, narrow band</DIV>
<DIV>&nbsp;</DIV>
<DIV>I changed all the speex dynamic allocation variables to static ones.&nbsp; It seems to work ok but when minor things change in the project it all goes to hell.&nbsp; I was hoping somebody could:</DIV>
<DIV>&nbsp;</DIV>
<DIV>a) verify that my sizes are correct or if they are too small</DIV>
<DIV>&nbsp;</DIV>
<DIV>b) Tell me if anything in the speex library is supposed to be aligned in any way in memory.&nbsp; 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>&nbsp;</DIV>
<DIV>here are all the sizes I use:</DIV>
<DIV>&nbsp;</DIV>
<DIV>#define ENC_WINBUF_SIZE 40<BR>&nbsp;#define ENC_EXCBUF_SIZE 306<BR>&nbsp;#define ENC_SWBUF_SIZE 306<BR>&nbsp;#define ENC_LAGWINDOW_SIZE 11<BR>&nbsp;#define ENC_OLD_LSP_SIZE 10<BR>&nbsp;#define ENC_OLD_QLSP_SIZE 10<BR>&nbsp;#define ENC_MEM_SP_SIZE 20<BR>&nbsp;#define ENC_MEM_SW_SIZE 20<BR>&nbsp;#define ENC_SW_WHOLE_SIZE 20<BR>&nbsp;#define ENC_MEM_EXC_SIZE 20<BR>&nbsp;#define ENC_MEM_EXC2_SIZE 20<BR>&nbsp;#define ENC_PI_GAIN_SIZE 8<BR>&nbsp;#define ENC_PITCH_SIZE 4</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;#define DEC_EXCBUF_SIZE 500<BR>&nbsp;#define DEC_INTERP_QLPC_SIZE 10<BR>&nbsp;#define DEC_OLD_QLSP_SIZE 10<BR>&nbsp;#define DEC_MEM_SP_SIZE 20<BR>&nbsp;#define DEC_PI_GAIN_SIZE 8</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>Thank you</DIV>
<DIV>&nbsp;</DIV>
<DIV>-Mike</DIV></BODY></HTML>