Displaying 1 result from an estimated 1 matches for "buffbytes".
Did you mean:
bufbytes
2007 Apr 11
0
Problem with speex
...speex_decoder_ctl(decstate,SPEEX_SET_ENH,@enh);
SetLength(buffDec,decframe);
Encode:
s3:string;
for j:=0 to encframe-1 do
buffenc[j]:=RecordBuff[j];
speex_bits_reset(@encbits);
speex_encode(encstate,@buffenc[0],@encbits);
sz := speex_bits_nbytes(@encbits);
SetLength(buffBytes,sz);
speex_bits_write(@encbits,@buffBytes[0],sz);
setlength(s3,length(buffbytes));
CopyMemory(@s3[1],@buffbytes[0],length(buffbytes));
Decode:
d:array of smallint;
speex_bits_read_from(@decbits,@s3[1],length(s3));
speex_decode(decstate,@decbits,@buffdec[0]);
setl...