Package ej.audio

Class AudioSinkNatives

java.lang.Object
ej.audio.AudioSinkNatives

public class AudioSinkNatives extends Object
  • Method Details

    • open

      public static int open(byte[] formatEncoding, int[] formatParameters, int bufferSize) throws ej.sni.NativeIOException
      Throws:
      ej.sni.NativeIOException
    • close

      public static void close(int sinkHandle)
    • setVolume

      public static void setVolume(int sinkHandle, float gain)
    • writeBuffer

      public static int writeBuffer(int sinkHandle, byte[] array, int offset, int size, int timeout) throws ej.sni.NativeIOException
      Throws:
      ej.sni.NativeIOException
    • waitForBufferFlushed

      public static boolean waitForBufferFlushed(int sinkHandle, int timeout)