Package com.sun.media.sound
Class AudioFloatConverter
java.lang.Object
com.sun.media.sound.AudioFloatConverter
This class is used to convert between 8,16,24,32,32+ bit signed/unsigned
big/litle endian fixed/floating point byte buffers and float buffers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AudioFloatConverter
getConverter
(AudioFormat format) final AudioFormat
final byte[]
toByteArray
(float[] in_buff, byte[] out_buff) final byte[]
toByteArray
(float[] in_buff, int in_len, byte[] out_buff) final byte[]
toByteArray
(float[] in_buff, int in_len, byte[] out_buff, int out_offset) final byte[]
toByteArray
(float[] in_buff, int in_offset, int in_len, byte[] out_buff) abstract byte[]
toByteArray
(float[] in_buff, int in_offset, int in_len, byte[] out_buff, int out_offset) final float[]
toFloatArray
(byte[] in_buff, float[] out_buff) final float[]
toFloatArray
(byte[] in_buff, float[] out_buff, int out_len) final float[]
toFloatArray
(byte[] in_buff, float[] out_buff, int out_offset, int out_len) final float[]
toFloatArray
(byte[] in_buff, int in_offset, float[] out_buff, int out_len) abstract float[]
toFloatArray
(byte[] in_buff, int in_offset, float[] out_buff, int out_offset, int out_len)
-
Constructor Details
-
AudioFloatConverter
public AudioFloatConverter()
-
-
Method Details
-
getConverter
-
getFormat
-
toFloatArray
public abstract float[] toFloatArray(byte[] in_buff, int in_offset, float[] out_buff, int out_offset, int out_len) -
toFloatArray
public final float[] toFloatArray(byte[] in_buff, float[] out_buff, int out_offset, int out_len) -
toFloatArray
public final float[] toFloatArray(byte[] in_buff, int in_offset, float[] out_buff, int out_len) -
toFloatArray
public final float[] toFloatArray(byte[] in_buff, float[] out_buff, int out_len) -
toFloatArray
public final float[] toFloatArray(byte[] in_buff, float[] out_buff) -
toByteArray
public abstract byte[] toByteArray(float[] in_buff, int in_offset, int in_len, byte[] out_buff, int out_offset) -
toByteArray
public final byte[] toByteArray(float[] in_buff, int in_len, byte[] out_buff, int out_offset) -
toByteArray
public final byte[] toByteArray(float[] in_buff, int in_offset, int in_len, byte[] out_buff) -
toByteArray
public final byte[] toByteArray(float[] in_buff, int in_len, byte[] out_buff) -
toByteArray
public final byte[] toByteArray(float[] in_buff, byte[] out_buff)
-