Package jmri.jmrit.vsdecoder
Class ConfigurableSound
- java.lang.Object
-
- jmri.jmrit.vsdecoder.VSDSound
-
- jmri.jmrit.vsdecoder.ConfigurableSound
-
class ConfigurableSound extends VSDSound
Configurable Sound initial version.
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.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringend_file(package private) SoundBiteend_sound(package private) booleaninitializedprotected java.lang.Stringmid_file(package private) SoundBitemid_soundprotected java.lang.Stringshort_file(package private) SoundBiteshort_soundprotected java.lang.Stringstart_file(package private) SoundBitestart_soundprotected booleanuse_end_soundprotected booleanuse_mid_soundprotected booleanuse_short_soundprotected booleanuse_start_sound-
Fields inherited from class jmri.jmrit.vsdecoder.VSDSound
BufSysNamePrefix, BufUserNamePrefix, default_exponent, default_gain, default_reference_distance, default_sleep_interval, gain, is_tunnel, myposition, name, SrcSysNamePrefix, SrcUserNamePrefix, t, tunnel_volume, volume
-
-
Constructor Summary
Constructors Constructor Description ConfigurableSound(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfadeIn()voidfadeOut()org.jdom2.ElementgetXml()protected voidhandleTimerPop(java.awt.event.ActionEvent e)booleaninit()(package private) booleaninit(VSDFile vf)voidloop()voidmute(boolean m)voidplay()voidsetPosition(PhysicalLocation p)voidsetVolume(float v)voidsetXml(org.jdom2.Element e)voidsetXml(org.jdom2.Element e, VSDFile vf)voidshutdown()voidstop()-
Methods inherited from class jmri.jmrit.vsdecoder.VSDSound
attachSourcesToEffects, changeNotch, changeThrottle, checkForFreeBuffer, detachSourcesToEffects, getGain, getName, getPosition, getTunnel, newTimer, setGain, setName, setTunnel
-
-
-
-
Field Detail
-
start_file
protected java.lang.String start_file
-
mid_file
protected java.lang.String mid_file
-
end_file
protected java.lang.String end_file
-
short_file
protected java.lang.String short_file
-
start_sound
SoundBite start_sound
-
short_sound
SoundBite short_sound
-
initialized
boolean initialized
-
use_start_sound
protected boolean use_start_sound
-
use_mid_sound
protected boolean use_mid_sound
-
use_end_sound
protected boolean use_end_sound
-
use_short_sound
protected boolean use_short_sound
-
-
Constructor Detail
-
ConfigurableSound
public ConfigurableSound(java.lang.String name)
-
-
Method Detail
-
init
public boolean init()
-
handleTimerPop
protected void handleTimerPop(java.awt.event.ActionEvent e)
-
setPosition
public void setPosition(PhysicalLocation p)
- Overrides:
setPositionin classVSDSound
-
-