|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sun.j3d.audioengines.AudioEngine
|
+--com.sun.j3d.audioengines.AudioEngine3D
|
+--com.sun.j3d.audioengines.AudioEngine3DL2
|
+--com.sun.j3d.audioengines.headspace.HeadspaceMixer
The HeadspaceMixer Class defines an audio output device that accesses Headspace mixing engine.
| Field Summary | |
protected float |
deviceGain
|
protected static int |
NOT_PAUSED
|
protected int |
pause
|
protected static int |
PAUSE_PENDING
|
protected static int |
PAUSED
|
protected static int |
RESUME_PENDING
|
| 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 | |
HeadspaceMixer(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)
Retrieves the number of channels (on executing audio device) that this sound is using, if it is playing, or is expected to use if it were begun to be played. |
int |
getNumberOfChannelsUsed(int index,
boolean muted)
Retrieves the number of channels (on executing audio device) that this sound is using, if it is playing, or is projected to use if it were to be started playing. |
long |
getSampleDuration(int index)
Returns the duration in milliseconds of the sound sample, if this information can be determined. |
long |
getStartTime(int index)
Returns the system time of when the sound was last "started". |
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)
Makes the sample 'play silently'. |
void |
pause()
Pauses audio device engine without closing the device and associated threads. |
void |
pauseSample(int index)
Temporarily stops a cached sample from playing without resetting the sample's current pointer back to the beginning of the sound data so that it can be unpaused at a later time from the same location in the sample when the pause was initiated. |
int |
prepareSound(int soundType,
MediaContainer soundData)
Code to load sound data into a channel of device channel 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 so index return for the first sample associated with prepared sound is incremented by 2. |
void |
resume()
Resumes audio device engine (if previously paused) without reinitializing * the device. |
void |
setDirection(int index,
Vector3d direction)
Sets this sound's direction from the local coordinate vector provided. |
void |
setFrequencyScaleFactor(float scaleFactor)
Set frequency scale factor for current aural attribute applied to all samples. |
void |
setGain(float scaleFactor)
Set overall gain control of all sounds playing on the audio device. |
void |
setLoop(int index,
int count)
Sets a sound's loop count. |
void |
setPosition(int index,
Point3d position)
Sets this sound's location (in Local coordinates) from specified Point. |
void |
setRateScaleFactor(int index,
float rateScaleFactor)
Set scale factor applied to sample playback rate for a particular sound associated with the audio device. |
void |
setReflectionCoefficient(float coefficient)
Sets the Reflective Coefficient scale factor applied to distinct low-order early reflections of sound off the surfaces in the region defined by the current listening region. |
void |
setReverbDelay(float reverbDelay)
Sets the reverberation delay time. |
void |
setReverbOrder(int reverbOrder)
Sets the reverberation order of reflections. |
void |
setRolloff(float rolloff)
Set rolloff value for current aural attribute applied to all samples. |
void |
setVelocityScaleFactor(float scaleFactor)
Set velocity scale factor for current aural attribute applied to all samples when Doppler is calculated. |
void |
setVworldXfrm(int index,
Transform3D trans)
Save a reference to the local to virtual world coordinate space |
int |
startSample(int index)
Begins a sound playing on the AudioDevice. |
int |
stopSample(int index)
Stops the sound on the AudioDevice. |
void |
unmuteSample(int index)
Makes a silently playing sample audible. |
void |
unpauseSample(int index)
Restarts the paused sample from the location in the sample where paused. |
void |
updateSample(int index)
Explicitly updates a Sample. |
| Methods inherited from class com.sun.j3d.audioengines.AudioEngine3DL2 |
setDecayFilter, setDecayTime, setDensity, setDiffusion, setObstructionFilter, setObstructionGain, setOcclusionFilter, setOcclusionGain, setReflectionDelay, setReverbCoefficient |
| Methods inherited from class com.sun.j3d.audioengines.AudioEngine3D |
getAuralParameters, getSample, getSampleList, getSampleListSize, getView, setAngularAttenuation, setDistanceFilter, setDistanceGain, setSampleGain, 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.AudioDevice3D |
setAngularAttenuation, setDistanceFilter, setDistanceGain, setSampleGain, setView |
| Methods inherited from interface javax.media.j3d.AudioDevice |
getAngleOffsetToSpeaker, getAudioPlaybackType, getCenterEarToSpeaker, getChannelsAvailable, getChannelsUsedForSound, setAngleOffsetToSpeaker, setAudioPlaybackType, setCenterEarToSpeaker |
| Field Detail |
protected float deviceGain
protected static final int NOT_PAUSED
protected static final int PAUSE_PENDING
protected static final int PAUSED
protected static final int RESUME_PENDING
protected int pause
| Constructor Detail |
public HeadspaceMixer(PhysicalEnvironment physicalEnvironment)
| Method Detail |
public int getTotalChannels()
getTotalChannels in interface AudioDevicegetTotalChannels in class com.sun.j3d.audioengines.AudioEnginepublic boolean initialize()
initialize in interface AudioDeviceinitialize in class com.sun.j3d.audioengines.AudioEnginepublic boolean close()
close in interface AudioDeviceclose in class com.sun.j3d.audioengines.AudioEngine
public int prepareSound(int soundType,
MediaContainer soundData)
prepareSound in interface AudioDevice3DprepareSound in class com.sun.j3d.audioengines.AudioEngine3DsoundType - defines the type of Sound Node: Background, Point, and
ConesoundData - reference to MediaContainer sound data and cached flag
public void clearSound(int index)
clearSound in interface AudioDevice3DclearSound in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver sample
public void setVworldXfrm(int index,
Transform3D trans)
setVworldXfrm in interface AudioDevice3DsetVworldXfrm in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver sampletrans - transformation matrix applied to local coordinate parameters
public void setPosition(int index,
Point3d position)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
setPosition in interface AudioDevice3DsetPosition in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver sampleposition - location of Point or Cone Sound in Virtual World
coordinatesPointSound.setPosition(float x, float y, float z),
PointSound.setPosition(Point3f position)
public void setDirection(int index,
Vector3d direction)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
setDirection in interface AudioDevice3DsetDirection in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver sampledirection - the new direction vector in local coordinatesConeSound.setDirection(float x, float y, float z),
ConeSound.setDirection(Vector3f direction)public void setReflectionCoefficient(float coefficient)
AudioDevice3DA full description of this parameter and how it is used is in the documentation for the AuralAttributes class.
This method should only be called by Java3D Core and NOT by any application.
setReflectionCoefficient in interface AudioDevice3DsetReflectionCoefficient in class com.sun.j3d.audioengines.AudioEngine3Dcoefficient - reflection/absorption factor applied to reverbAuralAttributes.setReflectionCoefficient(float)public void setReverbDelay(float reverbDelay)
AudioDevice3DA full description of this parameter and how it is used is in the documentation for the AuralAttributes class.
This method should only be called by Java3D Core and NOT by any application.
setReverbDelay in interface AudioDevice3DsetReverbDelay in class com.sun.j3d.audioengines.AudioEngine3DreverbDelay - time between each order of late reflectionAuralAttributes.setReverbDelay(float reverbDelay)public void setReverbOrder(int reverbOrder)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
setReverbOrder in interface AudioDevice3DsetReverbOrder in class com.sun.j3d.audioengines.AudioEngine3DreverbOrder - number of times reflections added to reverb signalAuralAttributes.setReverbOrder(int)public int startSample(int index)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
startSample in interface AudioDevice3DstartSample in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver sample
public int stopSample(int index)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
stopSample in interface AudioDevice3DstopSample in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver sample
associated with sound data to be played
public void pauseSample(int index)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
pauseSample in interface AudioDevice3DpauseSample in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver samplepublic void unpauseSample(int index)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
unpauseSample in interface AudioDevice3DunpauseSample in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver samplepublic void updateSample(int index)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
updateSample in interface AudioDevice3DupdateSample in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver samplepublic void muteSample(int index)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
muteSample in interface AudioDevice3DmuteSample in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver samplepublic void unmuteSample(int index)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
unmuteSample in interface AudioDevice3DunmuteSample in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver samplepublic long getSampleDuration(int index)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
getSampleDuration in interface AudioDevice3DgetSampleDuration in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver sample
public int getNumberOfChannelsUsed(int index)
AudioDevice3DFor some AudioDevice3D implementations:
A single sound could be rendered using multiple samples, each taking up mixer channels.
This method should only be called by Java3D Core and NOT by any application.
getNumberOfChannelsUsed in interface AudioDevice3DgetNumberOfChannelsUsed in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver sample
public int getNumberOfChannelsUsed(int index,
boolean muted)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
getNumberOfChannelsUsed in interface AudioDevice3DgetNumberOfChannelsUsed in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver samplemuted - flag to use as the current muted state ignoring current
mute state
public long getStartTime(int index)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
getStartTime in interface AudioDevice3DgetStartTime in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver sample
public void setLoop(int index,
int count)
AudioDevice3DThis method should only be called by Java3D Core and NOT by any application.
setLoop in interface AudioDevice3DsetLoop in class com.sun.j3d.audioengines.AudioEngine3Dindex - device specific reference number to device driver sampleSound.setLoop(int)public void setGain(float scaleFactor)
com.sun.j3d.audioengines.AudioEngine3DL2
setGain in interface AudioDevice3DL2setGain in class com.sun.j3d.audioengines.AudioEngine3DL2scaleFactor - scale factor applied to calculated amplitudes for
all sounds playing on this devicepublic void pause()
pause in interface AudioDevice3DL2pause in class com.sun.j3d.audioengines.AudioEngine3DL2public void resume()
resume in interface AudioDevice3DL2resume in class com.sun.j3d.audioengines.AudioEngine3DL2
public void setRateScaleFactor(int index,
float rateScaleFactor)
com.sun.j3d.audioengines.AudioEngine3DL2
setRateScaleFactor in interface AudioDevice3DL2setRateScaleFactor in class com.sun.j3d.audioengines.AudioEngine3DL2index - device specific reference to device driver samplerateScaleFactor - non-negative factor applied to calculated
amplitudes for all sounds playing on this deviceSound.setRateScaleFactor(float)public void setRolloff(float rolloff)
setRolloff in interface AudioDevice3DsetRolloff in class com.sun.j3d.audioengines.AudioEngine3Drolloff - scale factor applied to standard speed of sound.AuralAttributes.setRolloff(float)public void setFrequencyScaleFactor(float scaleFactor)
setFrequencyScaleFactor in interface AudioDevice3DsetFrequencyScaleFactor in class com.sun.j3d.audioengines.AudioEngine3DscaleFactor - frequency scale factor applied to samples normal
playback rate.AuralAttributes.setFrequencyScaleFactor(float)public void setVelocityScaleFactor(float scaleFactor)
setVelocityScaleFactor in interface AudioDevice3DsetVelocityScaleFactor in class com.sun.j3d.audioengines.AudioEngine3DscaleFactor - scale factor applied to postional samples'
listener-to-soundSource velocity.
playback rate.AuralAttributes.setVelocityScaleFactor(float)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||