Displaying 2 results from an estimated 2 matches for "inputlength".
Did you mean:
input_length
2007 Nov 20
0
speex_bits_write / speex_bits_read_from - getting Static
...gt;^ SpeexDecoder::Decode(array<Byte>^ inputBytes)
{
short* outputFrame = (short*) malloc(m_frameSize*sizeof(short));
speex_bits_reset(m_bits);
if(inputBytes != nullptr)
{
//begin lazy man's way of converting to regular C
std::string input;
unsigned int inputLength = inputBytes->Length;
input.resize(inputLength);
unsigned int i = 0;
for(i = 0; i<inputLength; i++)
input[i] = (unsigned char) inputBytes[i];
//end lazy man's conversion
speex_bits_read_from(m_bits, (char*) input.c_str(), inputLength);
}
else...
2006 Sep 19
0
Multiple frame encode and decode
...ze = 160 bytes, but i got 960
bytes(160 x 6 frames)
Code sample:
Encode:
speex_encode_int(mEncState, input, &mSpxBits);
length = speex_bits_write(&mSpxBits, encodedData,
200);
memcpy(&mRtpBuffer[mCopyIndex],encodedData,length);
Decode:
------
speex_bits_read_from(&mSpxBits, input, inputLength);
while(speex_decode_int(decState, &spxBits, buff) !=
-1)
{
written = mSpxBits.nbBits; //hope i get 160 bytes
}
speex_bits_reset(&mSpxBits);
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo....