Displaying 2 results from an estimated 2 matches for "ttbyte".
Did you mean:
2tbyte
2005 Jun 30
0
speex_encode segfault
Hi,
i'm following encoder example in the manual.pdf of speex documentation. Here's
my portion of code:
int SPEEX_EncodePCM(struct _IDA_ClientSocket *IDA,char *buffer,unsigned char
*PCM,int num_samples) {
int ret,c,d=0,nbBytes,ttBytes=0;
float PCM_F[160];
char cBits[200];
#ifndef DISABLESPEEX
speex_bits_reset(&IDA->speex_bits);
for(c=0;c<num_samples;c++) {
PCM_F[d] = (float)((int)PCM[c] << 8) - 32640;
if(d >= 159) {
speex_encode(IDA->speex_state,PCM_F,&IDA->speex_bits);...
2005 Jul 03
0
speex_encode segfault
Hi,
i'm following encoder example in the manual.pdf of speex documentation. Here's
my portion of code:
int SPEEX_EncodePCM(struct _IDA_ClientSocket *IDA,char *buffer,unsigned char
*PCM,int num_samples) {
int ret,c,d=0,nbBytes,ttBytes=0;
float PCM_F[160];
char cBits[200];
#ifndef DISABLESPEEX
speex_bits_reset(&IDA->speex_bits);
for(c=0;c<num_samples;c++) {
PCM_F[d] = (float)((int)PCM[c] << 8) - 32640;
if(d >= 159) {
speex_encode(IDA->speex_state,PCM_F,&IDA->speex_bits);...