Displaying 3 results from an estimated 3 matches for "speex_close".
2005 Jun 22
1
Newbie - Encoding PCM
...it(struct _IDA_ClientSocket *IDA) {
/* speex_init_header(&IDA->speex_header,8000,1,IDA->speex_mode); */
IDA->speex_mode = speex_lib_get_mode(SPEEX_MODEID_NB);
speex_bits_init(&IDA->speex_bits);
IDA->speex_state = speex_encoder_init(IDA->speex_mode);
}
int SPEEX_Close(struct _IDA_ClientSocket *IDA) {
speex_bits_destroy(&IDA->speex_bits);
speex_encoder_destroy(IDA->speex_state);
}
"IDA" struct containts:
struct _IDA_ClientSocket {
[...]
void *speex_state;
SpeexHeader speex_header;
SpeexBits speex_bits;
SpeexMode *...
2005 Jun 30
0
speex_encode segfault
...);
return ttBytes;
#endif
}
int SPEEX_Init(struct _IDA_ClientSocket *IDA) {
int tmp;
IDA->speex_state = speex_encoder_init(&speex_nb_mode);
tmp = 8;
speex_encoder_ctl(IDA->speex_state, SPEEX_SET_QUALITY, &tmp);
speex_bits_init(&IDA->speex_bits);
}
int SPEEX_Close(struct _IDA_ClientSocket *IDA) {
#ifndef DISABLESPEEX
speex_bits_destroy(&IDA->speex_bits);
speex_encoder_destroy(IDA->speex_state);
#endif
}
when i run this code gdb say me:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 49156 (LWP 5719)]
0x405195cc i...
2005 Jul 03
0
speex_encode segfault
...);
return ttBytes;
#endif
}
int SPEEX_Init(struct _IDA_ClientSocket *IDA) {
int tmp;
IDA->speex_state = speex_encoder_init(&speex_nb_mode);
tmp = 8;
speex_encoder_ctl(IDA->speex_state, SPEEX_SET_QUALITY, &tmp);
speex_bits_init(&IDA->speex_bits);
}
int SPEEX_Close(struct _IDA_ClientSocket *IDA) {
#ifndef DISABLESPEEX
speex_bits_destroy(&IDA->speex_bits);
speex_encoder_destroy(IDA->speex_state);
#endif
}
when i run this code gdb say me:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 49156 (LWP 5719)]
0x405195cc i...