Displaying 1 result from an estimated 1 matches for "_encoderbuffer".
2016 Nov 10
1
Error running opus encoder/decoder under PIC32
...error = opus_encoder_ctl(_encoder, OPUS_SET_BITRATE(64000));
_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 sto...