Class Opus

java.lang.Object
org.lwjgl.util.opus.Opus

public class Opus extends Object
  • Field Details

    • OPUS_OK

      public static final int OPUS_OK
      See Also:
    • OPUS_BAD_ARG

      public static final int OPUS_BAD_ARG
      See Also:
    • OPUS_BUFFER_TOO_SMALL

      public static final int OPUS_BUFFER_TOO_SMALL
      See Also:
    • OPUS_INTERNAL_ERROR

      public static final int OPUS_INTERNAL_ERROR
      See Also:
    • OPUS_INVALID_PACKET

      public static final int OPUS_INVALID_PACKET
      See Also:
    • OPUS_UNIMPLEMENTED

      public static final int OPUS_UNIMPLEMENTED
      See Also:
    • OPUS_INVALID_STATE

      public static final int OPUS_INVALID_STATE
      See Also:
    • OPUS_ALLOC_FAIL

      public static final int OPUS_ALLOC_FAIL
      See Also:
    • OPUS_SET_APPLICATION_REQUEST

      public static final int OPUS_SET_APPLICATION_REQUEST
      See Also:
    • OPUS_GET_APPLICATION_REQUEST

      public static final int OPUS_GET_APPLICATION_REQUEST
      See Also:
    • OPUS_SET_BITRATE_REQUEST

      public static final int OPUS_SET_BITRATE_REQUEST
      See Also:
    • OPUS_GET_BITRATE_REQUEST

      public static final int OPUS_GET_BITRATE_REQUEST
      See Also:
    • OPUS_SET_MAX_BANDWIDTH_REQUEST

      public static final int OPUS_SET_MAX_BANDWIDTH_REQUEST
      See Also:
    • OPUS_GET_MAX_BANDWIDTH_REQUEST

      public static final int OPUS_GET_MAX_BANDWIDTH_REQUEST
      See Also:
    • OPUS_SET_VBR_REQUEST

      public static final int OPUS_SET_VBR_REQUEST
      See Also:
    • OPUS_GET_VBR_REQUEST

      public static final int OPUS_GET_VBR_REQUEST
      See Also:
    • OPUS_SET_BANDWIDTH_REQUEST

      public static final int OPUS_SET_BANDWIDTH_REQUEST
      See Also:
    • OPUS_GET_BANDWIDTH_REQUEST

      public static final int OPUS_GET_BANDWIDTH_REQUEST
      See Also:
    • OPUS_SET_COMPLEXITY_REQUEST

      public static final int OPUS_SET_COMPLEXITY_REQUEST
      See Also:
    • OPUS_GET_COMPLEXITY_REQUEST

      public static final int OPUS_GET_COMPLEXITY_REQUEST
      See Also:
    • OPUS_SET_INBAND_FEC_REQUEST

      public static final int OPUS_SET_INBAND_FEC_REQUEST
      See Also:
    • OPUS_GET_INBAND_FEC_REQUEST

      public static final int OPUS_GET_INBAND_FEC_REQUEST
      See Also:
    • OPUS_SET_PACKET_LOSS_PERC_REQUEST

      public static final int OPUS_SET_PACKET_LOSS_PERC_REQUEST
      See Also:
    • OPUS_GET_PACKET_LOSS_PERC_REQUEST

      public static final int OPUS_GET_PACKET_LOSS_PERC_REQUEST
      See Also:
    • OPUS_SET_DTX_REQUEST

      public static final int OPUS_SET_DTX_REQUEST
      See Also:
    • OPUS_GET_DTX_REQUEST

      public static final int OPUS_GET_DTX_REQUEST
      See Also:
    • OPUS_SET_VBR_CONSTRAINT_REQUEST

      public static final int OPUS_SET_VBR_CONSTRAINT_REQUEST
      See Also:
    • OPUS_GET_VBR_CONSTRAINT_REQUEST

      public static final int OPUS_GET_VBR_CONSTRAINT_REQUEST
      See Also:
    • OPUS_SET_FORCE_CHANNELS_REQUEST

      public static final int OPUS_SET_FORCE_CHANNELS_REQUEST
      See Also:
    • OPUS_GET_FORCE_CHANNELS_REQUEST

      public static final int OPUS_GET_FORCE_CHANNELS_REQUEST
      See Also:
    • OPUS_SET_SIGNAL_REQUEST

      public static final int OPUS_SET_SIGNAL_REQUEST
      See Also:
    • OPUS_GET_SIGNAL_REQUEST

      public static final int OPUS_GET_SIGNAL_REQUEST
      See Also:
    • OPUS_GET_LOOKAHEAD_REQUEST

      public static final int OPUS_GET_LOOKAHEAD_REQUEST
      See Also:
    • OPUS_RESET_STATE

      public static final int OPUS_RESET_STATE
      See Also:
    • OPUS_GET_SAMPLE_RATE_REQUEST

      public static final int OPUS_GET_SAMPLE_RATE_REQUEST
      See Also:
    • OPUS_GET_FINAL_RANGE_REQUEST

      public static final int OPUS_GET_FINAL_RANGE_REQUEST
      See Also:
    • OPUS_GET_PITCH_REQUEST

      public static final int OPUS_GET_PITCH_REQUEST
      See Also:
    • OPUS_SET_GAIN_REQUEST

      public static final int OPUS_SET_GAIN_REQUEST
      See Also:
    • OPUS_GET_GAIN_REQUEST

      public static final int OPUS_GET_GAIN_REQUEST
      See Also:
    • OPUS_SET_LSB_DEPTH_REQUEST

      public static final int OPUS_SET_LSB_DEPTH_REQUEST
      See Also:
    • OPUS_GET_LSB_DEPTH_REQUEST

      public static final int OPUS_GET_LSB_DEPTH_REQUEST
      See Also:
    • OPUS_GET_LAST_PACKET_DURATION_REQUEST

      public static final int OPUS_GET_LAST_PACKET_DURATION_REQUEST
      See Also:
    • OPUS_SET_EXPERT_FRAME_DURATION_REQUEST

      public static final int OPUS_SET_EXPERT_FRAME_DURATION_REQUEST
      See Also:
    • OPUS_GET_EXPERT_FRAME_DURATION_REQUEST

      public static final int OPUS_GET_EXPERT_FRAME_DURATION_REQUEST
      See Also:
    • OPUS_SET_PREDICTION_DISABLED_REQUEST

      public static final int OPUS_SET_PREDICTION_DISABLED_REQUEST
      See Also:
    • OPUS_GET_PREDICTION_DISABLED_REQUEST

      public static final int OPUS_GET_PREDICTION_DISABLED_REQUEST
      See Also:
    • OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST

      public static final int OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST
      See Also:
    • OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST

      public static final int OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST
      See Also:
    • OPUS_GET_IN_DTX_REQUEST

      public static final int OPUS_GET_IN_DTX_REQUEST
      See Also:
    • OPUS_SET_DRED_DURATION_REQUEST

      public static final int OPUS_SET_DRED_DURATION_REQUEST
      See Also:
    • OPUS_GET_DRED_DURATION_REQUEST

      public static final int OPUS_GET_DRED_DURATION_REQUEST
      See Also:
    • OPUS_SET_DNN_BLOB_REQUEST

      public static final int OPUS_SET_DNN_BLOB_REQUEST
      See Also:
    • OPUS_SET_OSCE_BWE_REQUEST

      public static final int OPUS_SET_OSCE_BWE_REQUEST
      See Also:
    • OPUS_GET_OSCE_BWE_REQUEST

      public static final int OPUS_GET_OSCE_BWE_REQUEST
      See Also:
    • OPUS_SET_QEXT_REQUEST

      public static final int OPUS_SET_QEXT_REQUEST
      See Also:
    • OPUS_GET_QEXT_REQUEST

      public static final int OPUS_GET_QEXT_REQUEST
      See Also:
    • OPUS_SET_IGNORE_EXTENSIONS_REQUEST

      public static final int OPUS_SET_IGNORE_EXTENSIONS_REQUEST
      See Also:
    • OPUS_GET_IGNORE_EXTENSIONS_REQUEST

      public static final int OPUS_GET_IGNORE_EXTENSIONS_REQUEST
      See Also:
    • OPUS_AUTO

      public static final int OPUS_AUTO
      See Also:
    • OPUS_BITRATE_MAX

      public static final int OPUS_BITRATE_MAX
      See Also:
    • OPUS_APPLICATION_VOIP

      public static final int OPUS_APPLICATION_VOIP
      See Also:
    • OPUS_APPLICATION_AUDIO

      public static final int OPUS_APPLICATION_AUDIO
      See Also:
    • OPUS_APPLICATION_RESTRICTED_LOWDELAY

      public static final int OPUS_APPLICATION_RESTRICTED_LOWDELAY
      See Also:
    • OPUS_APPLICATION_RESTRICTED_SILK

      public static final int OPUS_APPLICATION_RESTRICTED_SILK
      See Also:
    • OPUS_APPLICATION_RESTRICTED_CELT

      public static final int OPUS_APPLICATION_RESTRICTED_CELT
      See Also:
    • OPUS_SIGNAL_VOICE

      public static final int OPUS_SIGNAL_VOICE
      See Also:
    • OPUS_SIGNAL_MUSIC

      public static final int OPUS_SIGNAL_MUSIC
      See Also:
    • OPUS_BANDWIDTH_NARROWBAND

      public static final int OPUS_BANDWIDTH_NARROWBAND
      See Also:
    • OPUS_BANDWIDTH_MEDIUMBAND

      public static final int OPUS_BANDWIDTH_MEDIUMBAND
      See Also:
    • OPUS_BANDWIDTH_WIDEBAND

      public static final int OPUS_BANDWIDTH_WIDEBAND
      See Also:
    • OPUS_BANDWIDTH_SUPERWIDEBAND

      public static final int OPUS_BANDWIDTH_SUPERWIDEBAND
      See Also:
    • OPUS_BANDWIDTH_FULLBAND

      public static final int OPUS_BANDWIDTH_FULLBAND
      See Also:
    • OPUS_FRAMESIZE_ARG

      public static final int OPUS_FRAMESIZE_ARG
      See Also:
    • OPUS_FRAMESIZE_2_5_MS

      public static final int OPUS_FRAMESIZE_2_5_MS
      See Also:
    • OPUS_FRAMESIZE_5_MS

      public static final int OPUS_FRAMESIZE_5_MS
      See Also:
    • OPUS_FRAMESIZE_10_MS

      public static final int OPUS_FRAMESIZE_10_MS
      See Also:
    • OPUS_FRAMESIZE_20_MS

      public static final int OPUS_FRAMESIZE_20_MS
      See Also:
    • OPUS_FRAMESIZE_40_MS

      public static final int OPUS_FRAMESIZE_40_MS
      See Also:
    • OPUS_FRAMESIZE_60_MS

      public static final int OPUS_FRAMESIZE_60_MS
      See Also:
    • OPUS_FRAMESIZE_80_MS

      public static final int OPUS_FRAMESIZE_80_MS
      See Also:
    • OPUS_FRAMESIZE_100_MS

      public static final int OPUS_FRAMESIZE_100_MS
      See Also:
    • OPUS_FRAMESIZE_120_MS

      public static final int OPUS_FRAMESIZE_120_MS
      See Also:
  • Method Details

    • getLibrary

      public static SharedLibrary getLibrary()
      Returns the opus SharedLibrary.
    • opus_encoder_get_size

      public static int opus_encoder_get_size(int channels)
      int opus_encoder_get_size(int channels)
    • nopus_encoder_create

      public static long nopus_encoder_create(int Fs, int channels, int application, long error)
      OpusEncoder * opus_encoder_create(opus_int32 Fs, int channels, int application, int * error)
    • opus_encoder_create

      @NativeType("OpusEncoder *") public static long opus_encoder_create(@NativeType("opus_int32") int Fs, int channels, int application, @NativeType("int *") @Nullable IntBuffer error)
      OpusEncoder * opus_encoder_create(opus_int32 Fs, int channels, int application, int * error)
    • opus_encoder_init

      public static int opus_encoder_init(@NativeType("OpusEncoder *") long st, @NativeType("opus_int32") int Fs, int channels, int application)
      int opus_encoder_init(OpusEncoder * st, opus_int32 Fs, int channels, int application)
    • nopus_encode

      public static int nopus_encode(long st, long pcm, int frame_size, long data, int max_data_bytes)
      opus_int32 opus_encode(OpusEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    • opus_encode

      @NativeType("opus_int32") public static int opus_encode(@NativeType("OpusEncoder *") long st, @NativeType("opus_int16 const *") ShortBuffer pcm, int frame_size, @NativeType("unsigned char *") ByteBuffer data)
      opus_int32 opus_encode(OpusEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    • nopus_encode24

      public static int nopus_encode24(long st, long pcm, int frame_size, long data, int max_data_bytes)
      opus_int32 opus_encode24(OpusEncoder * st, opus_int32 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    • opus_encode24

      @NativeType("opus_int32") public static int opus_encode24(@NativeType("OpusEncoder *") long st, @NativeType("opus_int32 const *") IntBuffer pcm, int frame_size, @NativeType("unsigned char *") ByteBuffer data)
      opus_int32 opus_encode24(OpusEncoder * st, opus_int32 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    • nopus_encode_float

      public static int nopus_encode_float(long st, long pcm, int frame_size, long data, int max_data_bytes)
      opus_int32 opus_encode_float(OpusEncoder * st, float const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    • opus_encode_float

      @NativeType("opus_int32") public static int opus_encode_float(@NativeType("OpusEncoder *") long st, @NativeType("float const *") FloatBuffer pcm, int frame_size, @NativeType("unsigned char *") ByteBuffer data)
      opus_int32 opus_encode_float(OpusEncoder * st, float const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    • opus_encoder_destroy

      public static void opus_encoder_destroy(@NativeType("OpusEncoder *") long st)
      void opus_encoder_destroy(OpusEncoder * st)
    • opus_decoder_get_size

      public static int opus_decoder_get_size(int channels)
      int opus_decoder_get_size(int channels)
    • nopus_decoder_create

      public static long nopus_decoder_create(int Fs, int channels, long error)
      OpusDecoder * opus_decoder_create(opus_int32 Fs, int channels, int * error)
    • opus_decoder_create

      @NativeType("OpusDecoder *") public static long opus_decoder_create(@NativeType("opus_int32") int Fs, int channels, @NativeType("int *") @Nullable IntBuffer error)
      OpusDecoder * opus_decoder_create(opus_int32 Fs, int channels, int * error)
    • opus_decoder_init

      public static int opus_decoder_init(@NativeType("OpusDecoder *") long st, @NativeType("opus_int32") int Fs, int channels)
      int opus_decoder_init(OpusDecoder * st, opus_int32 Fs, int channels)
    • nopus_decode

      public static int nopus_decode(long st, long data, int len, long pcm, int frame_size, int decode_fec)
      int opus_decode(OpusDecoder * st, unsigned char const * data, opus_int32 len, opus_int16 * pcm, int frame_size, int decode_fec)
    • opus_decode

      public static int opus_decode(@NativeType("OpusDecoder *") long st, @NativeType("unsigned char const *") @Nullable ByteBuffer data, @NativeType("opus_int16 *") ShortBuffer pcm, int frame_size, int decode_fec)
      int opus_decode(OpusDecoder * st, unsigned char const * data, opus_int32 len, opus_int16 * pcm, int frame_size, int decode_fec)
    • nopus_decode24

      public static int nopus_decode24(long st, long data, int len, long pcm, int frame_size, int decode_fec)
      int opus_decode24(OpusDecoder * st, unsigned char const * data, opus_int32 len, opus_int32 * pcm, int frame_size, int decode_fec)
    • opus_decode24

      public static int opus_decode24(@NativeType("OpusDecoder *") long st, @NativeType("unsigned char const *") @Nullable ByteBuffer data, @NativeType("opus_int32 *") IntBuffer pcm, int frame_size, int decode_fec)
      int opus_decode24(OpusDecoder * st, unsigned char const * data, opus_int32 len, opus_int32 * pcm, int frame_size, int decode_fec)
    • nopus_decode_float

      public static int nopus_decode_float(long st, long data, int len, long pcm, int frame_size, int decode_fec)
      int opus_decode_float(OpusDecoder * st, unsigned char const * data, opus_int32 len, float * pcm, int frame_size, int decode_fec)
    • opus_decode_float

      public static int opus_decode_float(@NativeType("OpusDecoder *") long st, @NativeType("unsigned char const *") @Nullable ByteBuffer data, @NativeType("float *") FloatBuffer pcm, int frame_size, int decode_fec)
      int opus_decode_float(OpusDecoder * st, unsigned char const * data, opus_int32 len, float * pcm, int frame_size, int decode_fec)
    • opus_decoder_destroy

      public static void opus_decoder_destroy(@NativeType("OpusDecoder *") long st)
      void opus_decoder_destroy(OpusDecoder * st)
    • opus_dred_decoder_get_size

      public static int opus_dred_decoder_get_size()
      int opus_dred_decoder_get_size(void)
    • nopus_dred_decoder_create

      public static long nopus_dred_decoder_create(long error)
      OpusDREDDecoder * opus_dred_decoder_create(int * error)
    • opus_dred_decoder_create

      @NativeType("OpusDREDDecoder *") public static long opus_dred_decoder_create(@NativeType("int *") @Nullable IntBuffer error)
      OpusDREDDecoder * opus_dred_decoder_create(int * error)
    • opus_dred_decoder_init

      public static int opus_dred_decoder_init(@NativeType("OpusDREDDecoder *") long dec)
      int opus_dred_decoder_init(OpusDREDDecoder * dec)
    • opus_dred_decoder_destroy

      public static void opus_dred_decoder_destroy(@NativeType("OpusDREDDecoder *") long dec)
      void opus_dred_decoder_destroy(OpusDREDDecoder * dec)
    • opus_dred_get_size

      public static int opus_dred_get_size()
      int opus_dred_get_size(void)
    • nopus_dred_alloc

      public static long nopus_dred_alloc(long error)
      OpusDRED * opus_dred_alloc(int * error)
    • opus_dred_alloc

      @NativeType("OpusDRED *") public static long opus_dred_alloc(@NativeType("int *") @Nullable IntBuffer error)
      OpusDRED * opus_dred_alloc(int * error)
    • opus_dred_free

      public static void opus_dred_free(@NativeType("OpusDRED *") long dec)
      void opus_dred_free(OpusDRED * dec)
    • nopus_dred_parse

      public static int nopus_dred_parse(long dred_dec, long dred, long data, int len, int max_dred_samples, int sampling_rate, long dred_end, int defer_processing)
      int opus_dred_parse(OpusDREDDecoder * dred_dec, OpusDRED * dred, unsigned char const * data, opus_int32 len, opus_int32 max_dred_samples, opus_int32 sampling_rate, int * dred_end, int defer_processing)
    • opus_dred_parse

      public static int opus_dred_parse(@NativeType("OpusDREDDecoder *") long dred_dec, @NativeType("OpusDRED *") long dred, @NativeType("unsigned char const *") ByteBuffer data, @NativeType("opus_int32") int max_dred_samples, @NativeType("opus_int32") int sampling_rate, @NativeType("int *") @Nullable IntBuffer dred_end, @NativeType("int") boolean defer_processing)
      int opus_dred_parse(OpusDREDDecoder * dred_dec, OpusDRED * dred, unsigned char const * data, opus_int32 len, opus_int32 max_dred_samples, opus_int32 sampling_rate, int * dred_end, int defer_processing)
    • opus_dred_process

      public static int opus_dred_process(@NativeType("OpusDREDDecoder *") long dred_dec, @NativeType("OpusDRED const *") long src, @NativeType("OpusDRED *") long dst)
      int opus_dred_process(OpusDREDDecoder * dred_dec, OpusDRED const * src, OpusDRED * dst)
    • nopus_decoder_dred_decode

      public static int nopus_decoder_dred_decode(long st, long dred, int dred_offset, long pcm, int frame_size)
      int opus_decoder_dred_decode(OpusDecoder * st, OpusDRED const * dred, opus_int32 dred_offset, opus_int16 * pcm, int frame_size)
    • opus_decoder_dred_decode

      public static int opus_decoder_dred_decode(@NativeType("OpusDecoder *") long st, @NativeType("OpusDRED const *") long dred, @NativeType("opus_int32") int dred_offset, @NativeType("opus_int16 *") ShortBuffer pcm, int frame_size)
      int opus_decoder_dred_decode(OpusDecoder * st, OpusDRED const * dred, opus_int32 dred_offset, opus_int16 * pcm, int frame_size)
    • nopus_decoder_dred_decode24

      public static int nopus_decoder_dred_decode24(long st, long dred, int dred_offset, long pcm, int frame_size)
      int opus_decoder_dred_decode24(OpusDecoder * st, OpusDRED const * dred, opus_int32 dred_offset, opus_int32 * pcm, int frame_size)
    • opus_decoder_dred_decode24

      public static int opus_decoder_dred_decode24(@NativeType("OpusDecoder *") long st, @NativeType("OpusDRED const *") long dred, @NativeType("opus_int32") int dred_offset, @NativeType("opus_int32 *") IntBuffer pcm, int frame_size)
      int opus_decoder_dred_decode24(OpusDecoder * st, OpusDRED const * dred, opus_int32 dred_offset, opus_int32 * pcm, int frame_size)
    • nopus_decoder_dred_decode_float

      public static int nopus_decoder_dred_decode_float(long st, long dred, int dred_offset, long pcm, int frame_size)
      int opus_decoder_dred_decode_float(OpusDecoder * st, OpusDRED const * dred, opus_int32 dred_offset, float * pcm, int frame_size)
    • opus_decoder_dred_decode_float

      public static int opus_decoder_dred_decode_float(@NativeType("OpusDecoder *") long st, @NativeType("OpusDRED const *") long dred, @NativeType("opus_int32") int dred_offset, @NativeType("float *") FloatBuffer pcm, int frame_size)
      int opus_decoder_dred_decode_float(OpusDecoder * st, OpusDRED const * dred, opus_int32 dred_offset, float * pcm, int frame_size)
    • nopus_packet_parse

      public static int nopus_packet_parse(long data, int len, long out_toc, long frames, long size, long payload_offset)
      int opus_packet_parse(unsigned char const * data, opus_int32 len, unsigned char * out_toc, unsigned char const ** frames, opus_int16 * size, int * payload_offset)
    • opus_packet_parse

      public static int opus_packet_parse(@NativeType("unsigned char const *") ByteBuffer data, @NativeType("unsigned char *") @Nullable ByteBuffer out_toc, @NativeType("unsigned char const **") @Nullable PointerBuffer frames, @NativeType("opus_int16 *") ShortBuffer size, @NativeType("int *") @Nullable IntBuffer payload_offset)
      int opus_packet_parse(unsigned char const * data, opus_int32 len, unsigned char * out_toc, unsigned char const ** frames, opus_int16 * size, int * payload_offset)
    • nopus_packet_get_bandwidth

      public static int nopus_packet_get_bandwidth(long data)
      int opus_packet_get_bandwidth(unsigned char const * data)
    • opus_packet_get_bandwidth

      public static int opus_packet_get_bandwidth(@NativeType("unsigned char const *") ByteBuffer data)
      int opus_packet_get_bandwidth(unsigned char const * data)
    • nopus_packet_get_samples_per_frame

      public static int nopus_packet_get_samples_per_frame(long data, int Fs)
      int opus_packet_get_samples_per_frame(unsigned char const * data, opus_int32 Fs)
    • opus_packet_get_samples_per_frame

      public static int opus_packet_get_samples_per_frame(@NativeType("unsigned char const *") ByteBuffer data, @NativeType("opus_int32") int Fs)
      int opus_packet_get_samples_per_frame(unsigned char const * data, opus_int32 Fs)
    • nopus_packet_get_nb_channels

      public static int nopus_packet_get_nb_channels(long data)
      int opus_packet_get_nb_channels(unsigned char const * data)
    • opus_packet_get_nb_channels

      public static int opus_packet_get_nb_channels(@NativeType("unsigned char const *") ByteBuffer data)
      int opus_packet_get_nb_channels(unsigned char const * data)
    • nopus_packet_get_nb_frames

      public static int nopus_packet_get_nb_frames(long packet, int len)
      int opus_packet_get_nb_frames(unsigned char const * packet, opus_int32 len)
    • opus_packet_get_nb_frames

      public static int opus_packet_get_nb_frames(@NativeType("unsigned char const *") ByteBuffer packet)
      int opus_packet_get_nb_frames(unsigned char const * packet, opus_int32 len)
    • nopus_packet_get_nb_samples

      public static int nopus_packet_get_nb_samples(long packet, int len, int Fs)
      int opus_packet_get_nb_samples(unsigned char const * packet, opus_int32 len, opus_int32 Fs)
    • opus_packet_get_nb_samples

      public static int opus_packet_get_nb_samples(@NativeType("unsigned char const *") ByteBuffer packet, @NativeType("opus_int32") int Fs)
      int opus_packet_get_nb_samples(unsigned char const * packet, opus_int32 len, opus_int32 Fs)
    • nopus_packet_has_lbrr

      public static int nopus_packet_has_lbrr(long packet, int len)
      int opus_packet_has_lbrr(unsigned char const * packet, opus_int32 len)
    • opus_packet_has_lbrr

      public static int opus_packet_has_lbrr(@NativeType("unsigned char const *") ByteBuffer packet)
      int opus_packet_has_lbrr(unsigned char const * packet, opus_int32 len)
    • nopus_decoder_get_nb_samples

      public static int nopus_decoder_get_nb_samples(long dec, long packet, int len)
      int opus_decoder_get_nb_samples(OpusDecoder const * dec, unsigned char const * packet, opus_int32 len)
    • opus_decoder_get_nb_samples

      public static int opus_decoder_get_nb_samples(@NativeType("OpusDecoder const *") long dec, @NativeType("unsigned char const *") ByteBuffer packet)
      int opus_decoder_get_nb_samples(OpusDecoder const * dec, unsigned char const * packet, opus_int32 len)
    • nopus_pcm_soft_clip

      public static void nopus_pcm_soft_clip(long pcm, int frame_size, int channels, long softclip_mem)
      void opus_pcm_soft_clip(float * pcm, int frame_size, int channels, float * softclip_mem)
    • opus_pcm_soft_clip

      public static void opus_pcm_soft_clip(@NativeType("float *") FloatBuffer pcm, int frame_size, @NativeType("float *") FloatBuffer softclip_mem)
      void opus_pcm_soft_clip(float * pcm, int frame_size, int channels, float * softclip_mem)
    • opus_repacketizer_get_size

      public static int opus_repacketizer_get_size()
      int opus_repacketizer_get_size(void)
    • opus_repacketizer_init

      @NativeType("OpusRepacketizer *") public static long opus_repacketizer_init(@NativeType("OpusRepacketizer *") long rp)
      OpusRepacketizer * opus_repacketizer_init(OpusRepacketizer * rp)
    • opus_repacketizer_create

      @NativeType("OpusRepacketizer *") public static long opus_repacketizer_create()
      OpusRepacketizer * opus_repacketizer_create(void)
    • opus_repacketizer_destroy

      public static void opus_repacketizer_destroy(@NativeType("OpusRepacketizer *") long rp)
      void opus_repacketizer_destroy(OpusRepacketizer * rp)
    • nopus_repacketizer_cat

      public static int nopus_repacketizer_cat(long rp, long data, int len)
      int opus_repacketizer_cat(OpusRepacketizer * rp, unsigned char const * data, opus_int32 len)
    • opus_repacketizer_cat

      public static int opus_repacketizer_cat(@NativeType("OpusRepacketizer *") long rp, @NativeType("unsigned char const *") ByteBuffer data)
      int opus_repacketizer_cat(OpusRepacketizer * rp, unsigned char const * data, opus_int32 len)
    • nopus_repacketizer_out_range

      public static int nopus_repacketizer_out_range(long rp, int begin, int end, long data, int maxlen)
      opus_int32 opus_repacketizer_out_range(OpusRepacketizer * rp, int begin, int end, unsigned char const * data, opus_int32 maxlen)
    • opus_repacketizer_out_range

      @NativeType("opus_int32") public static int opus_repacketizer_out_range(@NativeType("OpusRepacketizer *") long rp, int begin, int end, @NativeType("unsigned char const *") ByteBuffer data)
      opus_int32 opus_repacketizer_out_range(OpusRepacketizer * rp, int begin, int end, unsigned char const * data, opus_int32 maxlen)
    • opus_repacketizer_get_nb_frames

      public static int opus_repacketizer_get_nb_frames(@NativeType("OpusRepacketizer *") long rp)
      int opus_repacketizer_get_nb_frames(OpusRepacketizer * rp)
    • nopus_repacketizer_out

      public static int nopus_repacketizer_out(long rp, long data, int maxlen)
      opus_int32 opus_repacketizer_out(OpusRepacketizer * rp, unsigned char const * data, opus_int32 maxlen)
    • opus_repacketizer_out

      @NativeType("opus_int32") public static int opus_repacketizer_out(@NativeType("OpusRepacketizer *") long rp, @NativeType("unsigned char const *") ByteBuffer data)
      opus_int32 opus_repacketizer_out(OpusRepacketizer * rp, unsigned char const * data, opus_int32 maxlen)
    • nopus_packet_pad

      public static int nopus_packet_pad(long data, int len, int new_len)
      int opus_packet_pad(unsigned char const * data, opus_int32 len, opus_int32 new_len)
    • opus_packet_pad

      public static int opus_packet_pad(@NativeType("unsigned char const *") ByteBuffer data, @NativeType("opus_int32") int len, @NativeType("opus_int32") int new_len)
      int opus_packet_pad(unsigned char const * data, opus_int32 len, opus_int32 new_len)
    • nopus_packet_unpad

      public static int nopus_packet_unpad(long data, int len)
      opus_int32 opus_packet_unpad(unsigned char const * data, opus_int32 len)
    • opus_packet_unpad

      @NativeType("opus_int32") public static int opus_packet_unpad(@NativeType("unsigned char const *") ByteBuffer data, @NativeType("opus_int32") int len)
      opus_int32 opus_packet_unpad(unsigned char const * data, opus_int32 len)
    • nopus_multistream_packet_pad

      public static int nopus_multistream_packet_pad(long data, int len, int new_len, int nb_streams)
      int opus_multistream_packet_pad(unsigned char const * data, opus_int32 len, opus_int32 new_len, int nb_streams)
    • opus_multistream_packet_pad

      public static int opus_multistream_packet_pad(@NativeType("unsigned char const *") ByteBuffer data, @NativeType("opus_int32") int len, @NativeType("opus_int32") int new_len, int nb_streams)
      int opus_multistream_packet_pad(unsigned char const * data, opus_int32 len, opus_int32 new_len, int nb_streams)
    • nopus_multistream_packet_unpad

      public static int nopus_multistream_packet_unpad(long data, int len, int nb_streams)
      opus_int32 opus_multistream_packet_unpad(unsigned char const * data, opus_int32 len, int nb_streams)
    • opus_multistream_packet_unpad

      @NativeType("opus_int32") public static int opus_multistream_packet_unpad(@NativeType("unsigned char const *") ByteBuffer data, @NativeType("opus_int32") int len, int nb_streams)
      opus_int32 opus_multistream_packet_unpad(unsigned char const * data, opus_int32 len, int nb_streams)
    • nopus_strerror

      public static long nopus_strerror(int error)
      char * opus_strerror(int error)
    • opus_strerror

      @NativeType("char *") public static @Nullable String opus_strerror(int error)
      char * opus_strerror(int error)
    • nopus_get_version_string

      public static long nopus_get_version_string()
      char * opus_get_version_string(void)
    • opus_get_version_string

      @NativeType("char *") public static @Nullable String opus_get_version_string()
      char * opus_get_version_string(void)
    • opus_encoder_ctl

      public static int opus_encoder_ctl(@NativeType("OpusEncoder *") long st, int request)
    • opus_encoder_ctl

      public static int opus_encoder_ctl(@NativeType("OpusEncoder *") long st, Opus.CTLRequest request)
    • opus_decoder_ctl

      public static int opus_decoder_ctl(@NativeType("OpusDecoder *") long st, int request)
    • opus_decoder_ctl

      public static int opus_decoder_ctl(@NativeType("OpusDecoder *") long st, Opus.CTLRequest request)
    • opus_dred_decoder_ctl

      public static int opus_dred_decoder_ctl(@NativeType("OpusDredDecoder *") long dred_dec, int request)
    • opus_dred_decoder_ctl

      public static int opus_dred_decoder_ctl(@NativeType("OpusDredDecoder *") long dred_dec, Opus.CTLRequest request)
    • OPUS_SET_COMPLEXITY

      public static Opus.CTLRequest OPUS_SET_COMPLEXITY(int value)
    • OPUS_GET_COMPLEXITY

      public static Opus.CTLRequest OPUS_GET_COMPLEXITY(IntBuffer value)
    • OPUS_SET_BITRATE

      public static Opus.CTLRequest OPUS_SET_BITRATE(int value)
    • OPUS_GET_BITRATE

      public static Opus.CTLRequest OPUS_GET_BITRATE(IntBuffer value)
    • OPUS_SET_VBR

      public static Opus.CTLRequest OPUS_SET_VBR(int value)
    • OPUS_GET_VBR

      public static Opus.CTLRequest OPUS_GET_VBR(IntBuffer value)
    • OPUS_SET_VBR_CONSTRAINT

      public static Opus.CTLRequest OPUS_SET_VBR_CONSTRAINT(int value)
    • OPUS_GET_VBR_CONSTRAINT

      public static Opus.CTLRequest OPUS_GET_VBR_CONSTRAINT(IntBuffer value)
    • OPUS_SET_FORCE_CHANNELS

      public static Opus.CTLRequest OPUS_SET_FORCE_CHANNELS(int value)
    • OPUS_GET_FORCE_CHANNELS

      public static Opus.CTLRequest OPUS_GET_FORCE_CHANNELS(IntBuffer value)
    • OPUS_SET_MAX_BANDWIDTH

      public static Opus.CTLRequest OPUS_SET_MAX_BANDWIDTH(int value)
    • OPUS_GET_MAX_BANDWIDTH

      public static Opus.CTLRequest OPUS_GET_MAX_BANDWIDTH(IntBuffer value)
    • OPUS_SET_BANDWIDTH

      public static Opus.CTLRequest OPUS_SET_BANDWIDTH(int value)
    • OPUS_GET_BANDWIDTH

      public static Opus.CTLRequest OPUS_GET_BANDWIDTH(IntBuffer value)
    • OPUS_SET_SIGNAL

      public static Opus.CTLRequest OPUS_SET_SIGNAL(int value)
    • OPUS_GET_SIGNAL

      public static Opus.CTLRequest OPUS_GET_SIGNAL(IntBuffer value)
    • OPUS_SET_APPLICATION

      public static Opus.CTLRequest OPUS_SET_APPLICATION(int value)
    • OPUS_GET_APPLICATION

      public static Opus.CTLRequest OPUS_GET_APPLICATION(IntBuffer value)
    • OPUS_GET_LOOKAHEAD

      public static Opus.CTLRequest OPUS_GET_LOOKAHEAD(IntBuffer value)
    • OPUS_SET_INBAND_FEC

      public static Opus.CTLRequest OPUS_SET_INBAND_FEC(int value)
    • OPUS_GET_INBAND_FEC

      public static Opus.CTLRequest OPUS_GET_INBAND_FEC(IntBuffer value)
    • OPUS_SET_PACKET_LOSS_PERC

      public static Opus.CTLRequest OPUS_SET_PACKET_LOSS_PERC(int value)
    • OPUS_GET_PACKET_LOSS_PERC

      public static Opus.CTLRequest OPUS_GET_PACKET_LOSS_PERC(IntBuffer value)
    • OPUS_SET_DTX

      public static Opus.CTLRequest OPUS_SET_DTX(int value)
    • OPUS_GET_DTX

      public static Opus.CTLRequest OPUS_GET_DTX(IntBuffer value)
    • OPUS_SET_LSB_DEPTH

      public static Opus.CTLRequest OPUS_SET_LSB_DEPTH(int value)
    • OPUS_GET_LSB_DEPTH

      public static Opus.CTLRequest OPUS_GET_LSB_DEPTH(IntBuffer value)
    • OPUS_SET_EXPERT_FRAME_DURATION

      public static Opus.CTLRequest OPUS_SET_EXPERT_FRAME_DURATION(int value)
    • OPUS_GET_EXPERT_FRAME_DURATION

      public static Opus.CTLRequest OPUS_GET_EXPERT_FRAME_DURATION(IntBuffer value)
    • OPUS_SET_PREDICTION_DISABLED

      public static Opus.CTLRequest OPUS_SET_PREDICTION_DISABLED(int value)
    • OPUS_GET_PREDICTION_DISABLED

      public static Opus.CTLRequest OPUS_GET_PREDICTION_DISABLED(IntBuffer value)
    • OPUS_SET_DRED_DURATION_REQUEST

      public static Opus.CTLRequest OPUS_SET_DRED_DURATION_REQUEST(int value)
    • OPUS_GET_DRED_DURATION_REQUEST

      public static Opus.CTLRequest OPUS_GET_DRED_DURATION_REQUEST(IntBuffer value)
    • OPUS_SET_DNN_BLOB_REQUEST

      public static Opus.CTLRequest OPUS_SET_DNN_BLOB_REQUEST(ByteBuffer data, int len)
    • OPUS_SET_QEXT

      public static Opus.CTLRequest OPUS_SET_QEXT(int value)
    • OPUS_GET_QEXT

      public static Opus.CTLRequest OPUS_GET_QEXT(IntBuffer value)
    • OPUS_GET_FINAL_RANGE

      public static Opus.CTLRequest OPUS_GET_FINAL_RANGE(IntBuffer value)
    • OPUS_GET_SAMPLE_RATE

      public static Opus.CTLRequest OPUS_GET_SAMPLE_RATE(IntBuffer value)
    • OPUS_SET_PHASE_INVERSION_DISABLED

      public static Opus.CTLRequest OPUS_SET_PHASE_INVERSION_DISABLED(int value)
    • OPUS_GET_PHASE_INVERSION_DISABLED

      public static Opus.CTLRequest OPUS_GET_PHASE_INVERSION_DISABLED(IntBuffer value)
    • OPUS_GET_IN_DTX

      public static Opus.CTLRequest OPUS_GET_IN_DTX(IntBuffer value)
    • OPUS_SET_GAIN

      public static Opus.CTLRequest OPUS_SET_GAIN(int value)
    • OPUS_GET_GAIN

      public static Opus.CTLRequest OPUS_GET_GAIN(IntBuffer value)
    • OPUS_GET_LAST_PACKET_DURATION

      public static Opus.CTLRequest OPUS_GET_LAST_PACKET_DURATION(IntBuffer value)
    • OPUS_GET_PITCH

      public static Opus.CTLRequest OPUS_GET_PITCH(IntBuffer value)
    • OPUS_SET_OSCE_BWE

      public static Opus.CTLRequest OPUS_SET_OSCE_BWE(int value)
    • OPUS_GET_OSCE_BWE

      public static Opus.CTLRequest OPUS_GET_OSCE_BWE(IntBuffer value)
    • OPUS_SET_IGNORE_EXTENSIONS

      public static Opus.CTLRequest OPUS_SET_IGNORE_EXTENSIONS(int value)
    • OPUS_GET_IGNORE_EXTENSIONS

      public static Opus.CTLRequest OPUS_GET_IGNORE_EXTENSIONS(IntBuffer value)