search for: opus_custom_decod

Displaying 2 results from an estimated 2 matches for "opus_custom_decod".

Did you mean: opus_custom_decode
2019 Feb 17
2
Custom mode
...e = opus_custom_mode_create(15625, 64, &err); size = opus_custom_encoder_get_size(mode, 1); enc = malloc(size); err = opus_custom_encoder_init(enc, mode, 1); err = opus_custom_encoder_ctl(enc, OPUS_SET_BITRATE(16000)); err = opus_custom_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0)); size = opus_custom_decoder_get_size(mode, 1); dec = malloc(size); err = opus_custom_decoder_init(dec, mode, 1); *ISR code (called once every 4.096ms):* nbBytes = opus_custom_encode( enc, (opus_int16 *)lMicBuf, 64, codedMicBuf, 64); frame_size = opus_custom_decode( dec, codedMicBuf, 64,...
2019 Feb 20
0
Fwd: Custom mode
...T_COMPLEXITY(0) unless you absolutely have to. That means > "give me all the distortions" so I wouldn't be surprised if that's where > those are coming from. If your encoding path can't handle full 10 > complexity, dial it down to 9, 8, etc until it runs ok. > > opus_custom_decode doesn't downsample from 48kHz, so your playback code > must still be treating it as if it's 15kHz, thus the pitch down. If you can > swing it, play as 48kHz, otherwise you have to insert another CPU-hogging > resampler. If you do need it and don't have a resampler handy, Opus...