|
||||||||||
| 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.AbstractAudioSource
jmri.jmrit.audio.NullAudioSource
public class NullAudioSource
Null audio system implementation of the Audio Source 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.AbstractAudioSource |
|---|
AbstractAudioSource.AudioSourceFadeThread, AbstractAudioSource.AudioSourceMoveThread |
| Field Summary |
|---|
| Fields inherited from class jmri.implementation.AbstractNamedBean |
|---|
mSystemName, mUserName |
| Fields inherited from interface jmri.jmrit.audio.AudioSource |
|---|
LOOP_CONTINUOUS, LOOP_NONE |
| 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 | |
|---|---|
NullAudioSource(String systemName)
Constructor for new NullAudioSource with system name |
|
NullAudioSource(String systemName,
String userName)
Constructor for new NullAudioSource with system name and user name |
|
| Method Summary | |
|---|---|
protected void |
calculateGain()
Method to calculate the gain of this AudioSource based on distance from listener and fade levels |
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. |
protected void |
doFadeIn()
Fade in then play this AudioSource |
protected void |
doFadeOut()
Fade out then stop this AudioSource |
protected void |
doPause()
Stop playing the clip but retain the current position |
protected void |
doPlay()
Play the clip from the beginning. |
protected void |
doResume()
Play the clip from the current position |
protected void |
doRewind()
Rewind clip to the beginning |
protected void |
doStop()
Stop playing the clip and rewind to the beginning |
| 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 NullAudioSource(String systemName)
systemName - AudioSource object system name (e.g. IAS1)
public NullAudioSource(String systemName,
String userName)
systemName - AudioSource object system name (e.g. IAS1)userName - AudioSource object user name| Method Detail |
|---|
protected void changePosition(Vector3f pos)
AbstractAudioSource
changePosition in class AbstractAudioSourcepos - new positionprotected void doPlay()
AbstractAudioSource
doPlay in class AbstractAudioSourceprotected void doStop()
AbstractAudioSource
doStop in class AbstractAudioSourceprotected void doPause()
AbstractAudioSource
doPause in class AbstractAudioSourceprotected void doResume()
AbstractAudioSource
doResume in class AbstractAudioSourceprotected void doRewind()
AbstractAudioSource
doRewind in class AbstractAudioSourceprotected void doFadeIn()
AbstractAudioSource
doFadeIn in class AbstractAudioSourceprotected void doFadeOut()
AbstractAudioSource
doFadeOut in class AbstractAudioSourceprotected void cleanUp()
AbstractAudio
cleanUp in class AbstractAudioprotected void calculateGain()
AbstractAudioSource
calculateGain in class AbstractAudioSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||