Package jmri.jmrit.vsdecoder
Class Diesel3Sound
- java.lang.Object
-
- jmri.jmrit.vsdecoder.VSDSound
-
- jmri.jmrit.vsdecoder.EngineSound
-
- jmri.jmrit.vsdecoder.Diesel3Sound
-
class Diesel3Sound extends EngineSound
Diesel Sound version 3.
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 (package private) int
number_helper_buffers
(package private) int
top_speed
-
Fields inherited from class jmri.jmrit.vsdecoder.EngineSound
auto_start_engine, engine_gain, engine_pane, engine_rd, exponent, fade_in_time, fade_length, fade_out_time, is_auto_start, sleep_interval
-
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 Diesel3Sound(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changeLocoDirection(int dirfn)
void
changeThrottle(float s)
org.jdom2.Element
getXml()
void
mute(boolean m)
void
setPosition(PhysicalLocation p)
void
setVolume(float v)
void
setXml(org.jdom2.Element e, VSDFile vf)
void
shutdown()
void
startEngine()
void
stopEngine()
-
Methods inherited from class jmri.jmrit.vsdecoder.EngineSound
autoStartCheck, calcEngineNotch, calcEngineNotch, fadeIn, fadeOut, functionKey, getActualSpeed, getFadeInTime, getFadeOutTime, getFirstSpeed, handleSpeedChange, isEngineStarted, loop, play, setActualSpeed, setEngineStarted, setFadeInTime, setFadeInTime, setFadeOutTime, setFadeOutTime, setFirstSpeed, setXMLAutoStart, setXMLEngineReferenceDistance, setXMLExponent, setXMLGain, setXMLReferenceDistance, setXMLSleepInterval, speedCurve, stop
-
-
-
-
Field Detail
-
top_speed
int top_speed
-
number_helper_buffers
final int number_helper_buffers
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Diesel3Sound
public Diesel3Sound(java.lang.String name)
-
-
Method Detail
-
changeThrottle
public void changeThrottle(float s)
- Overrides:
changeThrottle
in classVSDSound
-
changeLocoDirection
public void changeLocoDirection(int dirfn)
- Overrides:
changeLocoDirection
in classEngineSound
-
startEngine
public void startEngine()
- Overrides:
startEngine
in classEngineSound
-
stopEngine
public void stopEngine()
- Overrides:
stopEngine
in classEngineSound
-
shutdown
public void shutdown()
- Overrides:
shutdown
in classEngineSound
-
mute
public void mute(boolean m)
- Overrides:
mute
in classEngineSound
-
setVolume
public void setVolume(float v)
- Overrides:
setVolume
in classEngineSound
-
setPosition
public void setPosition(PhysicalLocation p)
- Overrides:
setPosition
in classVSDSound
-
getXml
public org.jdom2.Element getXml()
- Overrides:
getXml
in classEngineSound
-
setXml
public void setXml(org.jdom2.Element e, VSDFile vf)
- Overrides:
setXml
in classEngineSound
-
-