| java.lang.Object com.sun.j3d.audioengines.AudioEngine com.sun.j3d.audioengines.AudioEngine3D com.sun.j3d.audioengines.AudioEngine3DL2 com.sun.j3d.audioengines.javasound.JavaSoundMixer
JavaSoundMixer | public class JavaSoundMixer extends AudioEngine3DL2 (Code) | | The JavaSoundMixer Class defines an audio output device that accesses
JavaSound functionality stream data.
|
Method Summary | |
void | calcReverb(JSSample sample) | public void | clearSound(int index) Clears the fields associated with sample data for this sound. | public boolean | close() Code to close the device. | void | debugPrint(String message) | void | debugPrintln(String message) | public int | getNumberOfChannelsUsed(int index) | public int | getNumberOfChannelsUsed(int index, boolean muted) Overriden method from AudioEngine3D. | public long | getSampleDuration(int index) | public long | getStartTime(int index) | public int | getTotalChannels() Query total number of channels available for sound rendering
for this audio device. | public boolean | initialize() | public void | muteSample(int index) | public void | pause() Pauses audio device engine without closing the device and associated
threads. | public void | pauseSample(int index) | public int | prepareSound(int soundType, MediaContainer soundData) Code to load sound data into a channel of device mixer. | public void | resume() Resumes audio device engine (if previously paused) without reinitializing * the device. | void | scaleSampleRate(int index, float scaleFactor) | public void | setDirection(int index, Vector3d direction) | void | setFilter(int index, boolean filterFlag, float filterFreq) | public void | setGain(float scaleFactor) | public void | setLoop(int index, int count) | public void | setPosition(int index, Point3d position) | public void | setRateScaleFactor(int index, float rateScaleFactor) | public void | setReflectionCoefficient(float coefficient) | void | setReverb(JSSample sample) | public void | setReverbDelay(float reverbDelay) | public void | setReverbOrder(int reverbOrder) | public void | setVworldXfrm(int index, Transform3D trans) Save a reference to the local to virtual world coordinate space
Overriden method from AudioEngine3D. | public int | startSample(int index) | public int | stopSample(int index) | public void | unmuteSample(int index) | public void | unpauseSample(int index) | public void | updateSample(int index) |
ADD_TO_LIST | final static int ADD_TO_LIST(Code) | | |
NOT_PAUSED | final protected static int NOT_PAUSED(Code) | | |
PAUSED | final protected static int PAUSED(Code) | | |
PAUSE_PENDING | final protected static int PAUSE_PENDING(Code) | | |
RESUME_PENDING | final protected static int RESUME_PENDING(Code) | | |
SET_INTO_LIST | final static int SET_INTO_LIST(Code) | | |
debugFlag | final static boolean debugFlag(Code) | | |
deviceGain | protected float deviceGain(Code) | | |
internalErrors | final static boolean internalErrors(Code) | | |
pause | protected int pause(Code) | | |
clearSound | public void clearSound(int index)(Code) | | Clears the fields associated with sample data for this sound.
Overriden method from AudioEngine3D.
|
close | public boolean close()(Code) | | Code to close the device.
New interface to mixer/engine specific methods
flag: true is closed sucessfully, false if error |
getNumberOfChannelsUsed | public int getNumberOfChannelsUsed(int index)(Code) | | |
getNumberOfChannelsUsed | public int getNumberOfChannelsUsed(int index, boolean muted)(Code) | | Overriden method from AudioEngine3D.
|
getSampleDuration | public long getSampleDuration(int index)(Code) | | |
getStartTime | public long getStartTime(int index)(Code) | | |
getTotalChannels | public int getTotalChannels()(Code) | | Query total number of channels available for sound rendering
for this audio device.
Overridden method from AudioEngine.
number of maximum voices play simultaneously on JavaSound Mixer. |
initialize | public boolean initialize()(Code) | | Code to initialize the device
New interface to mixer/engine specific methods
flag: true is initialized sucessfully, false if error |
muteSample | public void muteSample(int index)(Code) | | |
pause | public void pause()(Code) | | Pauses audio device engine without closing the device and associated
threads.
Causes all cached sounds to be paused and all streaming sounds to be
stopped.
|
pauseSample | public void pauseSample(int index)(Code) | | |
prepareSound | public int prepareSound(int soundType, MediaContainer soundData)(Code) | | Code to load sound data into a channel of device mixer.
Load sound as one or mores sample into the Java Sound Mixer:
a) as either a STREAM or CLIP based on whether cached is enabled
b) positional and directional sounds use three samples per
sound
Overriden method from AudioEngine3D.
Sound type determines if this is a Background, Point or Cone
sound source and thus the JSXxxxSample object type
Call JSXxxxxSample.loadSample()
If no error
Get the next free index in the samples list.
Store a reference to JSXxxxSample object in samples list.
index to the sample in samples list. |
resume | public void resume()(Code) | | Resumes audio device engine (if previously paused) without reinitializing * the device.
Causes all paused cached sounds to be resumed and all streaming sounds
restarted.
|
scaleSampleRate | void scaleSampleRate(int index, float scaleFactor)(Code) | | |
setDirection | public void setDirection(int index, Vector3d direction)(Code) | | |
setFilter | void setFilter(int index, boolean filterFlag, float filterFreq)(Code) | | |
setGain | public void setGain(float scaleFactor)(Code) | | |
setLoop | public void setLoop(int index, int count)(Code) | | |
setPosition | public void setPosition(int index, Point3d position)(Code) | | |
setRateScaleFactor | public void setRateScaleFactor(int index, float rateScaleFactor)(Code) | | |
setReflectionCoefficient | public void setReflectionCoefficient(float coefficient)(Code) | | |
setReverbDelay | public void setReverbDelay(float reverbDelay)(Code) | | |
setReverbOrder | public void setReverbOrder(int reverbOrder)(Code) | | |
setVworldXfrm | public void setVworldXfrm(int index, Transform3D trans)(Code) | | Save a reference to the local to virtual world coordinate space
Overriden method from AudioEngine3D.
|
startSample | public int startSample(int index)(Code) | | |
stopSample | public int stopSample(int index)(Code) | | |
unmuteSample | public void unmuteSample(int index)(Code) | | |
unpauseSample | public void unpauseSample(int index)(Code) | | |
updateSample | public void updateSample(int index)(Code) | | |
Methods inherited from com.sun.j3d.audioengines.AudioEngine3D | abstract public void clearSound(int index)(Code)(Java Doc) public AuralParameters getAuralParameters()(Code)(Java Doc) public int getNumberOfChannelsUsed(int index)(Code)(Java Doc) public int getNumberOfChannelsUsed(int index, boolean muteFlag)(Code)(Java Doc) public Sample getSample(int index)(Code)(Java Doc) public long getSampleDuration(int index)(Code)(Java Doc) protected ArrayList getSampleList()(Code)(Java Doc) public int getSampleListSize()(Code)(Java Doc) public long getStartTime(int index)(Code)(Java Doc) public View getView()(Code)(Java Doc) abstract public void muteSample(int index)(Code)(Java Doc) abstract public void pauseSample(int index)(Code)(Java Doc) public int prepareSound(int soundType, MediaContainer soundData)(Code)(Java Doc) public void setAngularAttenuation(int index, int filterType, double[] angle, float[] attenuationScaleFactor, float[] filterCutoff)(Code)(Java Doc) public void setDirection(int index, Vector3d direction)(Code)(Java Doc) public void setDistanceFilter(int filterType, double[] dist, float[] filterCutoff)(Code)(Java Doc) public void setDistanceGain(int index, double[] frontDistance, float[] frontAttenuationScaleFactor, double[] backDistance, float[] backAttenuationScaleFactor)(Code)(Java Doc) public void setFrequencyScaleFactor(float scaleFactor)(Code)(Java Doc) public void setLoop(int index, int count)(Code)(Java Doc) public void setPosition(int index, Point3d position)(Code)(Java Doc) public void setReflectionCoefficient(float coefficient)(Code)(Java Doc) public void setReverbDelay(float reverbDelay)(Code)(Java Doc) public void setReverbOrder(int reverbOrder)(Code)(Java Doc) public void setRolloff(float rolloff)(Code)(Java Doc) public void setSampleGain(int index, float scaleFactor)(Code)(Java Doc) public void setVelocityScaleFactor(float scaleFactor)(Code)(Java Doc) public void setView(View reference)(Code)(Java Doc) public void setVworldXfrm(int index, Transform3D trans)(Code)(Java Doc) abstract public int startSample(int index)(Code)(Java Doc) abstract public int stopSample(int index)(Code)(Java Doc) abstract public void unmuteSample(int index)(Code)(Java Doc) abstract public void unpauseSample(int index)(Code)(Java Doc) abstract public void updateSample(int index)(Code)(Java Doc)
|
|
|