|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.implementation.AbstractNamedBean
jmri.implementation.AbstractAudio
jmri.jmrit.audio.AbstractAudioListener
jmri.jmrit.audio.JoalAudioListener
public class JoalAudioListener
JOAL implementation of the Audio Listener sub-class.
For now, no system-specific implementations are forseen - this will remain
internal-only
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jmri.jmrit.audio.AbstractAudioListener |
|---|
AbstractAudioListener.AudioListenerMoveThread |
| Field Summary |
|---|
| Fields inherited from class jmri.implementation.AbstractNamedBean |
|---|
mSystemName, mUserName |
| Fields inherited from interface jmri.Audio |
|---|
AT, BUFFER, CMD_BIND_BUFFER, CMD_FADE_IN, CMD_FADE_OUT, CMD_INIT_FACTORY, CMD_LOAD_SOUND, CMD_PAUSE, CMD_PAUSE_TOGGLE, CMD_PLAY, CMD_PLAY_TOGGLE, CMD_RESET_POSITION, CMD_RESUME, CMD_REWIND, CMD_STOP, DECIMAL_PLACES, FADE_IN, FADE_NONE, FADE_OUT, LISTENER, MAX_DISTANCE, SOURCE, STATE_EMPTY, STATE_INITIAL, STATE_LOADED, STATE_MOVING, STATE_PLAYING, STATE_POSITIONED, STATE_STOPPED, UP |
| Fields inherited from interface jmri.NamedBean |
|---|
INCONSISTENT, UNKNOWN |
| Constructor Summary | |
|---|---|
JoalAudioListener(String systemName)
Constructor for new JoalAudioListener with system name |
|
JoalAudioListener(String systemName,
String userName)
Constructor for new JoalAudioListener with system name and user name |
|
| Method Summary | |
|---|---|
protected void |
changePosition(Vector3f pos)
Method to change the current position of this source |
protected void |
cleanUp()
Abstract method that concrete classes will implement to perform necessary cleanup routines. |
void |
setGain(float gain)
Set the gain of this AudioListener object Applicable values 0.0f to 1.0f When applied to Listeners, has the effect of altering the master gain (or volume) Applies only to sub-types: Listener Source |
void |
setMetersPerUnit(float metersPerUnit)
Method to set the Meters per unit ratio for all distance calculations. |
void |
setOrientation(Vector3f at,
Vector3f up)
Set the orientation of this AudioListener object Applies only to sub-types: Listener |
void |
setVelocity(Vector3f vel)
Sets the velocity of this AudioListener object Applies only to sub-types: Listener Source |
void |
stateChanged(int oldState)
Method used to update the current state of the Audio object |
| Methods inherited from class jmri.jmrit.audio.AbstractAudioListener |
|---|
calculateCurrentPosition, doResetCurrentPosition, getCurrentOrientation, getCurrentPosition, getGain, getMetersPerUnit, getOrientation, getPosition, getSubType, getVelocity, resetCurrentPosition, setPosition, setPosition, setPosition, toString |
| Methods inherited from class jmri.implementation.AbstractAudio |
|---|
getState, roundDecimal, roundDecimal, setState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JoalAudioListener(String systemName)
systemName - AudioListener object system name (e.g. IAL)
public JoalAudioListener(String systemName,
String userName)
systemName - AudioListener object system name (e.g. IAL)userName - AudioListener object user name| Method Detail |
|---|
protected void changePosition(Vector3f pos)
AbstractAudioListener
changePosition in class AbstractAudioListenerpos - new positionpublic void setVelocity(Vector3f vel)
AudioListenerApplies only to sub-types:
setVelocity in interface AudioListenersetVelocity in class AbstractAudioListenervel - 3d velocity vector
public void setOrientation(Vector3f at,
Vector3f up)
AudioListenerApplies only to sub-types:
setOrientation in interface AudioListenersetOrientation in class AbstractAudioListenerat - 3d vector representing the positionup - 3d vector representing the look-at pointpublic void setGain(float gain)
AudioListenerApplicable values 0.0f to 1.0f
When applied to Listeners, has the effect of altering the master gain (or volume)
Applies only to sub-types:
setGain in interface AudioListenersetGain in class AbstractAudioListenerpublic void setMetersPerUnit(float metersPerUnit)
AudioListenerDefault value = 1.0f (i.e. 1 unit == 1 metre)
Typical alternative values:
Applies only to sub-types:
setMetersPerUnit in interface AudioListenersetMetersPerUnit in class AbstractAudioListenermetersPerUnit - Meters per unit ratiopublic void stateChanged(int oldState)
Audio
stateChanged in interface AudiostateChanged in class AbstractAudioListenerprotected void cleanUp()
AbstractAudio
cleanUp in class AbstractAudio
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||