|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.ding3d.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.ding3d.AudioDevice |
|---|
HEADPHONES, MONO_SPEAKER, STEREO_SPEAKERS |
| Constructor Summary | |
|---|---|
AudioEngine(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(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(PhysicalEnvironment physicalEnvironment)
physicalEnvironment - the physical environment object where we
want access to this device.| Method Detail |
|---|
public abstract boolean initialize()
initialize in interface AudioDevicepublic abstract boolean close()
close in interface AudioDevicepublic void setAudioPlaybackType(int type)
setAudioPlaybackType in interface AudioDevicetype - of audio output devicepublic int getAudioPlaybackType()
getAudioPlaybackType in interface AudioDevicepublic void setCenterEarToSpeaker(float distance)
setCenterEarToSpeaker in interface AudioDevicedistance - from the center ear and to the speakerpublic float getCenterEarToSpeaker()
getCenterEarToSpeaker in interface AudioDevicepublic void setAngleOffsetToSpeaker(float angle)
setAngleOffsetToSpeaker in interface AudioDeviceangle - in radian between head coordinate Z axis and vector to speakerpublic float getAngleOffsetToSpeaker()
getAngleOffsetToSpeaker in interface AudioDevicepublic int getTotalChannels()
getTotalChannels in interface AudioDevicepublic int getChannelsAvailable()
getChannelsAvailable in interface AudioDevicepublic int getChannelsUsedForSound(Sound sound)
getChannelsUsedForSound in interface AudioDevicesound - 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 | |||||||||