|
Aviatrix3D 2.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.NodeComponent
org.j3d.aviatrix3d.AudioComponent
org.j3d.aviatrix3d.ByteAudioComponent
public class ByteAudioComponent
A Audio component that uses raw byte data to be interpreted by the format IDs passed in.
| Field Summary |
|---|
| Fields inherited from class org.j3d.aviatrix3d.AudioComponent |
|---|
data, format, frequency, loop, pitch |
| Fields inherited from class org.j3d.aviatrix3d.NodeComponent |
|---|
lastParent, liveCount, parentList |
| Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
|---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
| Fields inherited from interface org.j3d.aviatrix3d.AudioSource |
|---|
FORMAT_MONO16, FORMAT_MONO8, FORMAT_SETERO8, FORMAT_STEREO16 |
| Constructor Summary | |
|---|---|
ByteAudioComponent()
Constructs a sound with default values. |
|
ByteAudioComponent(int format,
int frequency,
boolean loop,
byte[] srcData)
Constructs a ByteAudioComponent using the specified format. |
|
ByteAudioComponent(int format,
int frequency,
boolean loop,
java.nio.ByteBuffer srcData)
Constructs a ByteAudioComponent using the specified format. |
|
| Method Summary | |
|---|---|
void |
clearLocalData()
Clear the data backing for this Component. |
void |
setData(int format,
int frequency,
byte[] srcData,
int seq)
Set the data for this component. |
void |
setData(int format,
int frequency,
java.nio.ByteBuffer srcData,
int seq)
Set the data for this component. |
| Methods inherited from class org.j3d.aviatrix3d.AudioComponent |
|---|
addUpdateListener, getBufferId, getFormat, getFrequency, getLoop, getPitch, removeUpdateListener, sendAudioUpdate, sendParamUpdate, setLoop, setPitch |
| Methods inherited from class org.j3d.aviatrix3d.NodeComponent |
|---|
addParent, getParents, numParents, removeParent |
| Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
|---|
checkForCyclicChild, checkForCyclicParent, dataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setLive, setUpdateHandler, setUserData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteAudioComponent()
public ByteAudioComponent(int format,
int frequency,
boolean loop,
java.nio.ByteBuffer srcData)
format - The audio format. FORMAT_MONO8,FORMAT_MONO16,FORMAT_STEREO8,FORMAT_STEREO16frequency - The frequency of the samplesloop - True if this sample should be loopedsrcData - The data to use
public ByteAudioComponent(int format,
int frequency,
boolean loop,
byte[] srcData)
format - The audio format. FORMAT_MONO8,FORMAT_MONO16,FORMAT_STEREO8,FORMAT_STEREO16frequency - The frequency of the samples.loop - True if this sample should be loopedsrcData - The data to use as a byte array| Method Detail |
|---|
public void clearLocalData()
clearLocalData in class AudioComponent
public void setData(int format,
int frequency,
byte[] srcData,
int seq)
format - The audio format. FORMAT_MONO8,FORMAT_MONO16,FORMAT_STEREO8,FORMAT_STEREO16frequency - The frequency of the samples.srcData - The data.seq - The seq being updated. 0 for non streaming data.
public void setData(int format,
int frequency,
java.nio.ByteBuffer srcData,
int seq)
format - The audio format. FORMAT_MONO8,FORMAT_MONO16,FORMAT_STEREO8,FORMAT_STEREO16frequency - The frequency of the samples.srcData - The data.seq - The seq being updated. 0 for non streaming data.
|
Aviatrix3D 2.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||