Decoder base class which allows specialisations for the different return types offered by the Opus system.
Specialisation for Float data return
Specialisation for Short data return
Wrapper around the Opus codec's encoder subsystem.
Scala interface to the Opus codec API.
Scala interface to the Opus codec API. With the exception of the *_ctl() commands, this is pretty much a 1:1 mapping from Scala to the C API. See the Opus documentation for details on these calls.
Factory for an Opus decoder that returns Short data
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.