Displaying 1 result from an estimated 1 matches for "m_encoderstate".
Did you mean:
m_pencoderstate
2007 Nov 20
0
speex_bits_write / speex_bits_read_from - getting Static
..._bits_read_from functions, because 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));...