Interface AudioConverter


public interface AudioConverter
A utility class to convert audio between different representations.
Can be obtained by calling VoicechatApi.getAudioConverter().

NOTE: Everything is assumed to be 16 bit PCM audio.
  • Method Details

    • bytesToShorts

      short[] bytesToShorts(byte[] bytes)
    • shortsToBytes

      byte[] shortsToBytes(short[] shorts)
    • floatsToShorts

      short[] floatsToShorts(float[] floats)
    • shortsToFloats

      float[] shortsToFloats(short[] shorts)
    • floatsToBytes

      byte[] floatsToBytes(float[] floats)
    • bytesToFloats

      float[] bytesToFloats(byte[] bytes)