Class Speex


  • public final class Speex
    extends Object
    Provides the interface to the native Speex library.
    Author:
    Lubomir Marinov
    • Method Detail

      • assertSpeexIsFunctional

        public static void assertSpeexIsFunctional()
      • speex_bits_destroy

        public static void speex_bits_destroy​(long bits)
      • speex_bits_init

        public static long speex_bits_init()
      • speex_bits_nbytes

        public static int speex_bits_nbytes​(long bits)
      • speex_bits_read_from

        public static void speex_bits_read_from​(long bits,
                                                byte[] bytes,
                                                int bytesOffset,
                                                int len)
      • speex_bits_remaining

        public static int speex_bits_remaining​(long bits)
      • speex_bits_reset

        public static void speex_bits_reset​(long bits)
      • speex_bits_write

        public static int speex_bits_write​(long bits,
                                           byte[] bytes,
                                           int bytesOffset,
                                           int max_len)
      • speex_decode_int

        public static int speex_decode_int​(long state,
                                           long bits,
                                           byte[] out,
                                           int byteOffset)
      • speex_decoder_ctl

        public static int speex_decoder_ctl​(long state,
                                            int request)
      • speex_decoder_ctl

        public static int speex_decoder_ctl​(long state,
                                            int request,
                                            int value)
      • speex_decoder_destroy

        public static void speex_decoder_destroy​(long state)
      • speex_decoder_init

        public static long speex_decoder_init​(long mode)
      • speex_encode_int

        public static int speex_encode_int​(long state,
                                           byte[] in,
                                           int inOffset,
                                           long bits)
      • speex_encoder_ctl

        public static int speex_encoder_ctl​(long state,
                                            int request)
      • speex_encoder_ctl

        public static int speex_encoder_ctl​(long state,
                                            int request,
                                            int value)
      • speex_encoder_destroy

        public static void speex_encoder_destroy​(long state)
      • speex_encoder_init

        public static long speex_encoder_init​(long mode)
      • speex_lib_get_mode

        public static long speex_lib_get_mode​(int mode)
      • speex_resampler_destroy

        public static void speex_resampler_destroy​(long state)
      • speex_resampler_init

        public static long speex_resampler_init​(int nb_channels,
                                                int in_rate,
                                                int out_rate,
                                                int quality,
                                                long err)
      • speex_resampler_process_interleaved_int

        public static int speex_resampler_process_interleaved_int​(long state,
                                                                  byte[] in,
                                                                  int inOffset,
                                                                  int in_len,
                                                                  byte[] out,
                                                                  int outOffset,
                                                                  int out_len)
      • speex_resampler_set_rate

        public static int speex_resampler_set_rate​(long state,
                                                   int in_rate,
                                                   int out_rate)