|
||||||||||
| 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.JavaSoundAudioFactory
public class JavaSoundAudioFactory
This is the JavaSound audio system specific AudioFactory.
The JavaSound sound system supports, where available, 2-channel stereo.
The implemented Audio objects provide an approximation of a 3D positionable audio model through the use of calculated panning and gain based on the 3D position of the individual sound sources.
This factory initialises JavaSound, provides new JavaSound-specific Audio objects and deals with clean-up operations.
For more information about the JavaSound API, visit http://java.sun.com/products/java-media/sound/
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 | |
|---|---|
JavaSoundAudioFactory()
|
|
| 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 |
static Mixer |
getMixer()
Return reference to the current JavaSound mixer 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 JavaSoundAudioFactory()
| 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
public static Mixer getMixer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||