The required sampling frequency
The number of channels you intend to encode.
The application (Voip, Audio or LowDelay)
The reserved size of the buffer to which compressed data are written. The default should be more than sufficient
Encode a block of raw audio in float format using the configured encoder
Encode a block of raw audio in float format using the configured encoder
Audio data arranged as a contiguous block interleaved array of floats
An array containing the compressed audio or the exception in case of a failure
Encode a block of raw audio in integer format using the configured encoder
Encode a block of raw audio in integer format using the configured encoder
Audio data arranged as a contiguous block interleaved array of short integers
An array containing the compressed audio or the exception in case of a failure
Release all pointers allocated for the encoder.
Release all pointers allocated for the encoder. Make every attempt to call this when you are done with the encoder as finalise() is what it is in the JVM
Wrapper around the Opus codec's encoder subsystem. The C interface is documented at http://www.opus-codec.org and should be considered definitive. The encoder accepts buffers of duration of 2,5, 5, 10, 20, 40 or 60ms. To calculate the buffer size, multiply your sample frequency by the frame duration. At 8kHz a 20ms packet is 160 samples long.