Package jmri.jmrit.audio
Class NullAudioFactory
java.lang.Object
jmri.jmrit.audio.AbstractAudioFactory
jmri.jmrit.audio.NullAudioFactory
- All Implemented Interfaces:
AudioFactory
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.
This file is part of JMRI.
This file is part of JMRI.
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Perform any implementation specific clean-up operations.createNewBuffer(String systemName, String userName) Provide a specific new AudioBuffer object.createNewListener(String systemName, String userName) Provide a specific new AudioListener object.createNewSource(String systemName, String userName) Provide a specific new AudioSource object.Get the currently active Listener object.booleaninit()Perform any implementation specific initialisation routines.booleanDetermine if this AudioFactory is initialisedtoString()Methods inherited from class jmri.jmrit.audio.AbstractAudioFactory
audioCommandQueue, getCommandThread, isDistanceAttenuated, setDistanceAttenuated
-
Constructor Details
-
NullAudioFactory
public NullAudioFactory()
-
-
Method Details
-
init
Description copied from interface:AudioFactoryPerform any implementation specific initialisation routines.- Specified by:
initin interfaceAudioFactory- Overrides:
initin classAbstractAudioFactory- Returns:
- true, if initialisation successful
-
toString
-
cleanup
Description copied from interface:AudioFactoryPerform any implementation specific clean-up operations.- Specified by:
cleanupin interfaceAudioFactory- Overrides:
cleanupin classAbstractAudioFactory
-
isInitialised
Description copied from interface:AudioFactoryDetermine if this AudioFactory is initialised- Returns:
- true if initialised
-
createNewBuffer
Description copied from interface:AudioFactoryProvide a specific new AudioBuffer object.- Parameters:
systemName- for this object instanceuserName- for this object instance- Returns:
- a new specific AudioBuffer
-
createNewListener
Description copied from interface:AudioFactoryProvide a specific new AudioListener object.- Parameters:
systemName- for this object instanceuserName- for this object instance- Returns:
- a new specific AudioListener
-
getActiveAudioListener
Description copied from interface:AudioFactoryGet the currently active Listener object.- Returns:
- active AudioListener
-
createNewSource
Description copied from interface:AudioFactoryProvide a specific new AudioSource object.- Parameters:
systemName- for this object instanceuserName- for this object instance- Returns:
- a new specific AudioSource
-