|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.audioengines.AudioEngine
public abstract class AudioEngine
The AudioEngine Class defines an audio output device that generates sound 'image' from scene graph. An AudioEngine object encapsulates the AudioDevice's basic information.
NOTE: AudioEngine developers should not subclass this class directly. Subclass AudioEngine3DL2 instead.
Field Summary |
---|
Fields inherited from interface javax.media.j3d.AudioDevice |
---|
HEADPHONES, MONO_SPEAKER, STEREO_SPEAKERS |
Constructor Summary | |
---|---|
AudioEngine(javax.media.j3d.PhysicalEnvironment physicalEnvironment)
Construct a new AudioEngine with the specified P.E. |
Method Summary | |
---|---|
abstract boolean |
close()
Code to close the device |
float |
getAngleOffsetToSpeaker()
Get Angle Offset To Speaker returns value set as angle between vector to speaker and Z head axis |
int |
getAudioPlaybackType()
Get Type of Audio Playback Output Device returns audio playback type to which sound is currently output |
float |
getCenterEarToSpeaker()
Get Distance from Ear to Speaker returns value set as distance from listener's ear to speaker |
int |
getChannelsAvailable()
Query number of channels currently available for use by the returns number of sound channels currently available (number not being used by active sounds. |
int |
getChannelsUsedForSound(javax.media.j3d.Sound sound)
Deprecated. This method is now part of the Sound class |
int |
getTotalChannels()
Query total number of channels available for sound rendering for this audio device. |
abstract boolean |
initialize()
Code to initialize the device |
void |
setAngleOffsetToSpeaker(float angle)
Set Angle Offset To Speaker |
void |
setAudioPlaybackType(int type)
Set Type of Audio Playback physical transducer(s) sound is output to. |
void |
setCenterEarToSpeaker(float distance)
Set Distance from the Center Ear to a Speaker |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AudioEngine(javax.media.j3d.PhysicalEnvironment physicalEnvironment)
physicalEnvironment
- the physical environment object where we
want access to this device.Method Detail |
---|
public abstract boolean initialize()
initialize
in interface javax.media.j3d.AudioDevice
public abstract boolean close()
close
in interface javax.media.j3d.AudioDevice
public void setAudioPlaybackType(int type)
setAudioPlaybackType
in interface javax.media.j3d.AudioDevice
type
- of audio output devicepublic int getAudioPlaybackType()
getAudioPlaybackType
in interface javax.media.j3d.AudioDevice
public void setCenterEarToSpeaker(float distance)
setCenterEarToSpeaker
in interface javax.media.j3d.AudioDevice
distance
- from the center ear and to the speakerpublic float getCenterEarToSpeaker()
getCenterEarToSpeaker
in interface javax.media.j3d.AudioDevice
public void setAngleOffsetToSpeaker(float angle)
setAngleOffsetToSpeaker
in interface javax.media.j3d.AudioDevice
angle
- in radian between head coordinate Z axis and vector to speakerpublic float getAngleOffsetToSpeaker()
getAngleOffsetToSpeaker
in interface javax.media.j3d.AudioDevice
public int getTotalChannels()
getTotalChannels
in interface javax.media.j3d.AudioDevice
public int getChannelsAvailable()
getChannelsAvailable
in interface javax.media.j3d.AudioDevice
public int getChannelsUsedForSound(javax.media.j3d.Sound sound)
getChannelsUsedForSound
in interface javax.media.j3d.AudioDevice
sound
- refenence to sound node that query to be performed on
returns number of sound channels used by a specific Sound node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |