|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.j3d.audioengines.AudioEngine | +--com.sun.j3d.audioengines.AudioEngine3D | +--com.sun.j3d.audioengines.javasound.JavaSoundMixer
The JavaSoundMixer Class defines an audio output device that accesses JavaSound JavaSoundMixer functionality Hae stream data.
Fields inherited from class com.sun.j3d.audioengines.AudioEngine3D |
attribs,
currentView,
samples |
Constructor Summary | |
JavaSoundMixer(PhysicalEnvironment physicalEnvironment)
|
Method Summary | |
void |
clearSound(int index)
Clears the fields associated with sample data for this sound. |
boolean |
close()
Code to close the device |
int |
getNumberOfChannelsUsed(int index)
Get number of channels used by a particular sample on the audio device. |
int |
getNumberOfChannelsUsed(int index,
boolean muted)
Get number of channels that would be used by a particular sample on the audio device given the mute flag passed in as a parameter. |
long |
getSampleDuration(int index)
Get length of time a sample would play if allowed to play to completion. |
long |
getStartTime(int index)
Get time this sample begun playing on the audio device. |
int |
getTotalChannels()
Query total number of channels available for sound rendering for this audio device. |
boolean |
initialize()
Code to initialize the device |
void |
muteSample(int index)
Mute sample. |
void |
pauseSample(int index)
Pause sample. |
int |
prepareSound(int soundType,
MediaContainer soundData)
Code to load sound data into a channel of device channel |
void |
setDirection(int index,
Vector3d direction)
Set direction vector of sample. |
void |
setLoop(int index,
int count)
Set number of times sample is looped. |
void |
setPosition(int index,
Point3d position)
Set location of sample. |
void |
setReflectionCoefficient(float coefficient)
Set reverberation surface reflection coefficient value for current aural attribute applied to all samples. |
void |
setReverbDelay(float reverbDelay)
Set reverberation delay time for current aural attribute applied to all samples. |
void |
setReverbOrder(int reverbOrder)
Set reverberation order for current aural attribute applied to all samples. |
void |
setVworldXfrm(int index,
Transform3D trans)
Save a reference to the local to virtual world coordinate space |
int |
startSample(int index)
Start sample playing on audio device |
int |
stopSample(int index)
Stop sample playing on audio device |
void |
unmuteSample(int index)
Unmute sample. |
void |
unpauseSample(int index)
Unpause sample. |
void |
updateSample(int index)
Update sample. |
Methods inherited from class com.sun.j3d.audioengines.AudioEngine3D |
getAuralParameters,
getSampleList,
getView,
setAngularAttenuation,
setDistanceFilter,
setDistanceGain,
setFrequencyScaleFactor,
setRolloff,
setSampleGain,
setVelocityScaleFactor,
setView |
Methods inherited from class com.sun.j3d.audioengines.AudioEngine |
getAngleOffsetToSpeaker,
getAudioPlaybackType,
getCenterEarToSpeaker,
getChannelsAvailable,
getChannelsUsedForSound,
setAngleOffsetToSpeaker,
setAudioPlaybackType,
setCenterEarToSpeaker |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public JavaSoundMixer(PhysicalEnvironment physicalEnvironment)
Method Detail |
public int getTotalChannels()
public boolean initialize()
public boolean close()
public int prepareSound(int soundType, MediaContainer soundData)
public void clearSound(int index)
index
- device specific reference number to device driver samplepublic void setVworldXfrm(int index, Transform3D trans)
index
- device specific reference number to device driver samplereference
- to virtual world composite transformpublic void setPosition(int index, Point3d position)
index
- device specific reference number to device driver sampleposition
- point location in virtual world coordinate of samplepublic void setDirection(int index, Vector3d direction)
index
- device specific reference number to device driver sampledirection
- vector in virtual world coordinate.public void setReflectionCoefficient(float coefficient)
coefficient
- applied to amplitude of reverbation added at each
iteration of reverb processing.public void setReverbDelay(float reverbDelay)
reverbDelay
- amount of time in millisecond between each
iteration of reverb processing.public void setReverbOrder(int reverbOrder)
reverbOrder
- number of times reverb process loop is iterated.public int startSample(int index)
index
- device specific reference number to device driver samplepublic int stopSample(int index)
index
- device specific reference number to device driver samplepublic void pauseSample(int index)
index
- device specific reference number to device driver samplepublic void unpauseSample(int index)
index
- device specific reference number to device driver samplepublic void updateSample(int index)
index
- device specific reference number to device driver samplepublic void muteSample(int index)
index
- device specific reference number to device driver samplepublic void unmuteSample(int index)
index
- device specific reference number to device driver samplepublic long getSampleDuration(int index)
index
- device specific reference number to device driver samplepublic int getNumberOfChannelsUsed(int index)
index
- device specific reference number to device driver samplepublic int getNumberOfChannelsUsed(int index, boolean muted)
index
- device specific reference number to device driver samplemuteFlag
- denotes the mute state to assume while executing this
query. This mute value does not have to match the current mute state
of the sample.public long getStartTime(int index)
index
- device specific reference number to device driver samplepublic void setLoop(int index, int count)
index
- device specific reference number to device driver samplecount
- number of times sample is repeated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |