Package de.maxhenkel.voicechat.api.audio
Interface AudioConverter
public interface AudioConverter
A utility class to convert audio between different representations.
Can be obtained by calling
NOTE: Everything is assumed to be 16 bit PCM audio.
Can be obtained by calling
VoicechatApi.getAudioConverter()
.
NOTE: Everything is assumed to be 16 bit PCM audio.
-
Method Summary
Modifier and TypeMethodDescriptionfloat[]
bytesToFloats
(byte[] bytes) short[]
bytesToShorts
(byte[] bytes) byte[]
floatsToBytes
(float[] floats) short[]
floatsToShorts
(float[] floats) byte[]
shortsToBytes
(short[] shorts) float[]
shortsToFloats
(short[] shorts)
-
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)
-