search for: m_bit

Displaying 2 results from an estimated 2 matches for "m_bit".

Did you mean: mbit
2007 Nov 20
0
speex_bits_write / speex_bits_read_from - getting Static
...if I change my encode function to return the whole SpeexBits struct and my decode function to accept a SpeexBits struct, it plays the vocoded audio without any problem. ****************** Managed C++ Code *********************************** //Public function -- m_encoderState is a void* member, m_bits is a SpeexBits* member array<Byte>^ SpeexEncoder::Encode(array<short>^ inputFrame) { //begin lazy man's way of converting to regular C unsigned int numSamples = inputFrame->Length; short* inputptr = (short*) malloc(numSamples*sizeof(short)); unsigned int i = 0;...
2007 Dec 21
1
Continous decoding of several audio files without destroying speex_decoder
...t reset the decoder before we decoding another file. Do we need to intialize speex decoder and destory decoder for each audio file decoding ? Here is current pseudo code. main() { m_speex = speex_decoder_init(speex_nb_mode); speex_decoder_ctl(m_speex, SPEEX_SET_ENH, &tmp); speex_bits_init(&m_bits); while(end of files) { speex_decoder_ctl(m_speex, SPEEX_RESET_STATE, &tmp); speex_bits_reset(&m_bits); OpenFile(speex audio file); while(end of file) { fread(speex frame); speex_bits_read_from(); speex_decode_int(); fwrite(decoded audio); }...