|
|||||||
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 |
Fields inherited from interface javax.media.j3d.AudioDevice3D |
BACKGROUND_SOUND, BUFFERED_AUDIO_DATA, CONE_SOUND, POINT_SOUND, STREAMING_AUDIO_DATA |
Fields inherited from interface javax.media.j3d.AudioDevice |
HEADPHONES, MONO_SPEAKER, STEREO_SPEAKERS |
Constructor Summary | |
JavaSoundMixer(javax.media.j3d.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,
javax.media.j3d.MediaContainer soundData)
Code to load sound data into a channel of device channel |
void |
setDirection(int index,
javax.vecmath.Vector3d direction)
Set direction vector of sample. |
void |
setLoop(int index,
int count)
Set number of times sample is looped. |
void |
setPosition(int index,
javax.vecmath.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,
javax.media.j3d.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 |
Methods inherited from interface javax.media.j3d.AudioDevice |
getAngleOffsetToSpeaker, getAudioPlaybackType, getCenterEarToSpeaker, getChannelsAvailable, getChannelsUsedForSound, setAngleOffsetToSpeaker, setAudioPlaybackType, setCenterEarToSpeaker |
Constructor Detail |
public JavaSoundMixer(javax.media.j3d.PhysicalEnvironment physicalEnvironment)
Method Detail |
public int getTotalChannels()
getTotalChannels
in class AudioEngine
public boolean initialize()
initialize
in class AudioEngine
public boolean close()
close
in class AudioEngine
public int prepareSound(int soundType, javax.media.j3d.MediaContainer soundData)
prepareSound
in class AudioEngine3D
public void clearSound(int index)
clearSound
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver samplepublic void setVworldXfrm(int index, javax.media.j3d.Transform3D trans)
setVworldXfrm
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver samplereference
- to virtual world composite transformpublic void setPosition(int index, javax.vecmath.Point3d position)
AudioEngine3D
setPosition
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver sampleposition
- point location in virtual world coordinate of samplepublic void setDirection(int index, javax.vecmath.Vector3d direction)
AudioEngine3D
setDirection
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver sampledirection
- vector in virtual world coordinate.public void setReflectionCoefficient(float coefficient)
AudioEngine3D
setReflectionCoefficient
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
coefficient
- applied to amplitude of reverbation added at each
iteration of reverb processing.public void setReverbDelay(float reverbDelay)
AudioEngine3D
setReverbDelay
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
reverbDelay
- amount of time in millisecond between each
iteration of reverb processing.public void setReverbOrder(int reverbOrder)
AudioEngine3D
setReverbOrder
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
reverbOrder
- number of times reverb process loop is iterated.public int startSample(int index)
AudioEngine3D
startSample
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver samplepublic int stopSample(int index)
AudioEngine3D
stopSample
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver samplepublic void pauseSample(int index)
AudioEngine3D
pauseSample
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver samplepublic void unpauseSample(int index)
AudioEngine3D
unpauseSample
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver samplepublic void updateSample(int index)
AudioEngine3D
updateSample
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver samplepublic void muteSample(int index)
AudioEngine3D
muteSample
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver samplepublic void unmuteSample(int index)
AudioEngine3D
unmuteSample
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver samplepublic long getSampleDuration(int index)
AudioEngine3D
getSampleDuration
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver samplepublic int getNumberOfChannelsUsed(int index)
AudioEngine3D
getNumberOfChannelsUsed
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver samplepublic int getNumberOfChannelsUsed(int index, boolean muted)
AudioEngine3D
getNumberOfChannelsUsed
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
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)
AudioEngine3D
getStartTime
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
index
- device specific reference number to device driver samplepublic void setLoop(int index, int count)
AudioEngine3D
setLoop
in class AudioEngine3D
com.sun.j3d.audioengines.AudioEngine3D
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 |