search for: speex_max_encode_size_per_fram

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

2007 Nov 20
0
speex_bits_write / speex_bits_read_from - getting Static
...t;numSamples; i++) inputptr[i] = (short) inputFrame[i]; //end lazy man's conversion speex_bits_reset(m_bits); //preprocess the input //speex_preprocess(m_preprocess, inputptr); //encode speex_encode_int(m_encoderState, inputptr, m_bits); char outputFrame[SPEEX_MAX_ENCODE_SIZE_PER_FRAME]; free(inputptr); unsigned int numBytes = speex_bits_write(m_bits, outputFrame, SPEEX_MAX_ENCODE_SIZE_PER_FRAME); //begin lazy man's conversion to Managed C++ array<Byte>^ output = gcnew array<Byte>(numBytes); for(i = 0; i< numBytes; i++) output[i]...