|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjass.render.FormatUtils
public final class FormatUtils
Utility class to convert sample types.
| Field Summary | |
|---|---|
static boolean |
bigEndian
Endianness. |
| Constructor Summary | |
|---|---|
FormatUtils()
|
|
| Method Summary | |
|---|---|
static void |
byteToFloat(float[] dbuf,
byte[] bbuf,
int bufsz)
Convert byte array to float array. |
static void |
floatToByte(byte[] byteSound,
float[] dbuf)
Convert float array to byte array. |
static void |
floatToShort(short[] shortSound,
float[] dbuf)
Convert float array (in range [-1 1]) to short array. |
static void |
shortToFloat(float[] buf,
short[] sbuf,
int bufsz)
Convert short array to float array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean bigEndian
| Constructor Detail |
|---|
public FormatUtils()
| Method Detail |
|---|
public static final void shortToFloat(float[] buf,
short[] sbuf,
int bufsz)
buf - User provided float array to return result in.sbuf - User provided sort array to convert.bufsz - Sumber of float samples to write.
public static final void floatToShort(short[] shortSound,
float[] dbuf)
shortSound - User provided short array to return result in.dbuf - User provided float array to convert.
public static final void floatToByte(byte[] byteSound,
float[] dbuf)
byteSound - User provided byte array to return result in.dbuf - User provided float array to convert.
public static final void byteToFloat(float[] dbuf,
byte[] bbuf,
int bufsz)
dbuf - User provided float array to return result in.dbuf - User provided byte array to convert.bufsz - Sumber of float samples to write.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||