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.String
end_file
(package private) SoundBite
end_sound
(package private) boolean
initialized
protected java.lang.String
mid_file
(package private) SoundBite
mid_sound
protected java.lang.String
short_file
(package private) SoundBite
short_sound
protected java.lang.String
start_file
(package private) SoundBite
start_sound
protected boolean
use_end_sound
protected boolean
use_mid_sound
protected boolean
use_short_sound
protected boolean
use_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 void
fadeIn()
void
fadeOut()
org.jdom2.Element
getXml()
protected void
handleTimerPop(java.awt.event.ActionEvent e)
boolean
init()
boolean
init(VSDFile vf)
void
loop()
void
mute(boolean m)
void
play()
void
setPosition(PhysicalLocation p)
void
setVolume(float v)
void
setXml(org.jdom2.Element e)
void
setXml(org.jdom2.Element e, VSDFile vf)
void
shutdown()
void
stop()
-
Methods inherited from class jmri.jmrit.vsdecoder.VSDSound
changeNotch, changeThrottle, 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:
setPosition
in classVSDSound
-
-