Displaying 1 result from an estimated 1 matches for "m_nbuffersize".
2005 Oct 09
0
Fw: problem in encoder/decoder
...dedstr;
float* input_frame;//approx of frame size
input_frame = new float[frame_size];
encodedstr = new unsigned char[MAX_FRAME_BYTES];
ZeroMemory(input_frame,frame_size);
ZeroMemory(encodedstr,MAX_FRAME_BYTES);
int pos = 0;
unsigned char*result;
result = new unsigned char[pMsg->m_nBufferSize];
ZeroMemory(result,pMsg->m_nBufferSize);
int encoded_bytes =0;
int complexity=4;
int bitrate =3;
speex_encoder_ctl(enc_state, SPEEX_SET_COMPLEXITY, &complexity);
//speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &rate);
speex_encoder_ctl(enc_state, SPEEX_SET_BITRAT...