Displaying 1 result from an estimated 1 matches for "pfencbuf".
Did you mean:
pfdecbuf
2005 Jul 20
1
Speex Windows from 1.1.6 source
.../************** Encode ******************/
speex_bits_reset(&Encbits);
psInput = (short *)InputBuf;
iIndex = 80;
memset(OutputBuf,0,(200 * sizeof(float)));
/*Copy the 16 bits values to float so Speex can work on them*/
for (i=0;i<iIndex;i++){
/* float */pfEncBuf[i]=/* short */psInput[i];
}
/*Encode the frame*/
speex_encode(encState,pfEncBuf, &Encbits);
memset(OutputBuf,0,outputSize);
/*Copy the bits to an array of char that can be written*/
iEncBytes = speex_bits_write(&Encbits, OutputBuf, outputSize);
return iEn...