Displaying 1 result from an estimated 1 matches for "cvoicemsg".
2005 Oct 09
0
Fw: problem in encoder/decoder
...problem in encoder/decoder
hi all,
I'm developing an app to broadcast voice over web. i tried to use speex and
download ver 1.04 documentation and use it to develop encoding and decoding
but after decoding voice is damaged i attach my encode/decode function.
BOOL EncodeSpeex(CVoiceMsg *pMsg)
{
SpeexBits bits;
void* enc_state;
// Initialize.
speex_bits_init(&bits);
enc_state = speex_encoder_init(&speex_nb_mode);
int frame_size = 0;
// get frame size.
speex_encoder_ctl(enc_state,SPEEX_GET_FRAME_SIZE,&frame_size);
int nbBytes = 0;
//unsigned ch...