|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.j3d.audioengines.AudioEngine
A AudioEngine object encapsulates the AudioDevice's basic information.
Fields inherited from interface javax.media.j3d.AudioDevice |
HEADPHONES,
MONO_SPEAKER,
STEREO_SPEAKERS |
Constructor Summary | |
AudioEngine(PhysicalEnvironment physicalEnvironment)
Construct a new AudioEngine with the specified P.E. |
Method Summary | |
boolean |
close()
Code to close the device |
float |
getAngleOffsetToSpeaker()
Get Angle Offset To Speaker |
int |
getAudioPlaybackType()
Get Type of Audio Playback Output Device |
float |
getCenterEarToSpeaker()
Get Distance from Ear to Speaker |
int |
getChannelsAvailable()
Query number of channels currently available for use by the |
int |
getChannelsUsedForSound(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. |
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 |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AudioEngine(PhysicalEnvironment physicalEnvironment)
physicalEnvironment
- the physical environment object where we
want access to this device.Method Detail |
public boolean initialize()
public boolean close()
public void setAudioPlaybackType(int type)
type
- of audio output devicepublic int getAudioPlaybackType()
public void setCenterEarToSpeaker(float distance)
distance
- from the center ear and to the speakerpublic float getCenterEarToSpeaker()
public void setAngleOffsetToSpeaker(float angle)
angle
- in radian between head coordinate Z axis and vector to speakerpublic float getAngleOffsetToSpeaker()
public int getTotalChannels()
public int getChannelsAvailable()
public int getChannelsUsedForSound(Sound sound)
sound
- refenence to sound node that query to be performed on
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |