|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.audio.AbstractAudioFactory
public abstract class AbstractAudioFactory
Abstract implementation of the AudioFactory class.
All code shared amongst the concrete AudioFactory classes is defined here.
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 | |
|---|---|
AbstractAudioFactory()
|
|
| Method Summary | |
|---|---|
boolean |
audioCommandQueue(AudioCommand queueAudioCommand)
Queues a new AudioCommand for subsequent execution. |
void |
cleanup()
Perform any implementation specific clean-up operations. |
Thread |
getCommandThread()
Return the currently active Command thread |
boolean |
init()
Perform any implementation specific initialisation routines. |
boolean |
isDistanceAttenuated()
Determines if this AudioFactory attenuates sources based on their distance from the Listener |
void |
setDistanceAttenuated(boolean attenuated)
Sets if this AudioFactory should attenuate sources based on their distance from the listener Default = true |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.jmrit.audio.AudioFactory |
|---|
createNewBuffer, createNewListener, createNewSource, getActiveAudioListener |
| Constructor Detail |
|---|
public AbstractAudioFactory()
| Method Detail |
|---|
public boolean init()
AudioFactory
init in interface AudioFactorypublic void cleanup()
AudioFactory
cleanup in interface AudioFactorypublic boolean audioCommandQueue(AudioCommand queueAudioCommand)
AudioFactoryIf newAudioCommand is null the current queue is executed and cleaned
audioCommandQueue in interface AudioFactoryqueueAudioCommand - AudioCommand to queue or null to execute queue
public Thread getCommandThread()
AudioFactory
getCommandThread in interface AudioFactorypublic void setDistanceAttenuated(boolean attenuated)
AudioFactoryDefault = true
setDistanceAttenuated in interface AudioFactoryattenuated - true if distance attenuation to be usedpublic boolean isDistanceAttenuated()
AudioFactory
isDistanceAttenuated in interface AudioFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||