Displaying 1 result from an estimated 1 matches for "sampsdecoded".
2016 Nov 10
1
Error running opus encoder/decoder under PIC32
..._decoder = opus_decoder_create(48000, 2, &error);
The variable error is always set to OPUS_OK.
The encoding and decoding procedure is as follows:
bytesEncoded = opus_encode(_encoder, _encoderBuffer,
_frameSize, codedBuffer, sizeof(codedBuffer));
sampsDecoded = opus_decode(_decoder, codedBuffer,
bytesEncoded, decoderBuffer, _frameSize, false);
In this case, _frameSize is 960 (20 ms), bytesEncoded returns 0xa1 and
sampsDecoded returns 960; codedBuffer is large enough to store the encoding
data.
Everything seems to be correct, but the result is no...