|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttoxi.audio.SynthUtil
public class SynthUtil

This class provides static conversion tools for translating normalized floating point wave data into 16bit PCM.
| Constructor Summary | |
|---|---|
SynthUtil()
|
|
| Method Summary | |
|---|---|
static AudioBuffer |
floatArrayTo16bitBuffer(JOALUtil audioSys,
float[] raw,
int rate)
|
static byte[] |
floatArrayTo16bitPCM(float[] raw)
|
static AudioBuffer |
floatArrayTo16bitStereoBuffer(JOALUtil audioSys,
float[] raw,
int rate)
|
static AudioBuffer |
floatArrayTo8bitBuffer(JOALUtil audioSys,
float[] raw,
int rate)
|
static byte[] |
floatArrayTo8bitPCM(float[] raw)
|
static AudioBuffer |
floatArrayTo8bitStereoBuffer(JOALUtil audioSys,
float[] raw,
int rate)
|
static float[] |
joinMonoFloatArrays(float[] left,
float[] right)
Merges the two given mono arrays into an interleaved stereo array in left-right order. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynthUtil()
| Method Detail |
|---|
public static AudioBuffer floatArrayTo16bitBuffer(JOALUtil audioSys,
float[] raw,
int rate)
public static byte[] floatArrayTo16bitPCM(float[] raw)
public static AudioBuffer floatArrayTo16bitStereoBuffer(JOALUtil audioSys,
float[] raw,
int rate)
public static AudioBuffer floatArrayTo8bitBuffer(JOALUtil audioSys,
float[] raw,
int rate)
public static byte[] floatArrayTo8bitPCM(float[] raw)
public static AudioBuffer floatArrayTo8bitStereoBuffer(JOALUtil audioSys,
float[] raw,
int rate)
public static float[] joinMonoFloatArrays(float[] left,
float[] right)
left - right -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||