|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.audio.AbstractAudioFactory
jmri.jmrit.audio.NullAudioFactory
public class NullAudioFactory
This is the null audio system specific AudioFactory. It is a dummy factory which provides the necessary object generation but does not produce any sound. This will normally only be used when running on a system that has no sound-card installed.
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.
| Constructor Summary | |
|---|---|
NullAudioFactory()
|
|
| Method Summary | |
|---|---|
void |
cleanup()
Perform any implementation specific clean-up operations. |
AudioBuffer |
createNewBuffer(String systemName,
String userName)
Provide a specific new AudioBuffer object. |
AudioListener |
createNewListener(String systemName,
String userName)
Provide a specific new AudioListener object. |
AudioSource |
createNewSource(String systemName,
String userName)
Provide a specific new AudioSource object. |
AudioListener |
getActiveAudioListener()
Return the currently active Listener object |
boolean |
init()
Perform any implementation specific initialisation routines. |
String |
toString()
|
| Methods inherited from class jmri.jmrit.audio.AbstractAudioFactory |
|---|
audioCommandQueue, getCommandThread, isDistanceAttenuated, setDistanceAttenuated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NullAudioFactory()
| Method Detail |
|---|
public boolean init()
AudioFactory
init in interface AudioFactoryinit in class AbstractAudioFactorypublic String toString()
toString in class Objectpublic void cleanup()
AudioFactory
cleanup in interface AudioFactorycleanup in class AbstractAudioFactory
public AudioBuffer createNewBuffer(String systemName,
String userName)
AudioFactory
systemName - for this object instanceuserName - for this object instance
public AudioListener createNewListener(String systemName,
String userName)
AudioFactory
systemName - for this object instanceuserName - for this object instance
public AudioListener getActiveAudioListener()
AudioFactory
public AudioSource createNewSource(String systemName,
String userName)
AudioFactory
systemName - for this object instanceuserName - for this object instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||