search for: framesize_

Displaying 1 result from an estimated 1 matches for "framesize_".

Did you mean: framesize
2010 Apr 13
1
Another newbie question on encoding
..., // 16 kHz SC_ULTRAWIDEBAND // 32 kHz }; CSpeexCodec(); ~CSpeexCodec(); BOOL Init(); UINT Encode( sample_type *inBuff, char **outBuff, UINT BufferFrames ); private: SpeexBits spx_bits_; void* spx_state_; UINT spx_quality_; UINT frameSize_; char* outBuffer_; }; BOOL CSpeexCodec::Init() { spx_state_ = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(spx_state_, SPEEX_GET_FRAME_SIZE, &frameSize_); // Create the output buffer outBuffer_ = new char[frameSize_]; speex_bits_init(&spx_bits_); } UIN...