Displaying 1 result from an estimated 1 matches for "pfdecbuf".
2005 Jul 20
1
Speex Windows from 1.1.6 source
...ex_bits_read_from(&Decbits, InputBuf, InputSize);
/* Get the Size of the Decoded Frame */
speex_decoder_ctl(decState, SPEEX_GET_FRAME_SIZE, &iDecBytes);
if(iIndex > outputSize)
return -1;
iIndex = iDecBytes/sizeof(short);
/* Allocate the Decode Frame */
memset(pfDecBuf,0,sizeof(200 * sizeof(float)));
/* Decode the data */
speex_decode(decState, &Decbits, pfDecBuf);
memset(OutputBuf,0,outputSize);
psOutput = (short *)OutputBuf;
/* Copy from float to short (16 bits) for output */
for (i=0;i<iIndex;i++)
psOutput[i]=(short...