Package jmri.jmrit.vsdecoder
Class SoundBite
java.lang.Object
jmri.jmrit.vsdecoder.VSDSound
jmri.jmrit.vsdecoder.SoundBite
- Direct Known Subclasses:
NotchTransition
VSD implementation of an audio sound.
This file is part of JMRI.
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 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 -
Method Summary
Modifier and TypeMethodDescription(package private) intMethod to attach a source to effectsstatic longcalcLength(AudioBuffer buf) static long(package private) intMethod to detach a source to effectsvoidfadeIn()voidfadeOut()intintlongintfloat(package private) final booleanvoidloop()voidmute(boolean m) intvoidpause()voidplay()voidvoidrewind()voidsetFadeInTime(int t) voidsetFadeOutTime(int t) voidsetFadeTimes(int in, int out) voidvoidsetLength(long p) voidsetLooped(boolean loop) voidvoidsetReferenceDistance(float r) voidvoidsetVolume(float v) voidshutdown()voidstop()voidMethods inherited from class jmri.jmrit.vsdecoder.VSDSound
changeNotch, changeThrottle, checkForFreeBuffer, getGain, getName, getPosition, getTunnel, getXml, newTimer, setGain, setName, setTunnel, setXml
-
Constructor Details
-
SoundBite
-
SoundBite
-
-
Method Details
-
getFileName
-
getSystemName
-
getUserName
-
isInitialized
-
queueBuffer
-
unqueueBuffers
-
numQueuedBuffers
-
getSource
-
getBuffer
-
getSourceSystemName
-
getSourceUserName
-
getBufferSystemName
-
getBufferUserName
-
setLooped
-
getFadeInTime
-
getFadeOutTime
-
setFadeInTime
-
setFadeOutTime
-
setFadeTimes
-
getReferenceDistance
-
setReferenceDistance
-
shutdown
-
mute
-
setVolume
-
play
-
loop
-
stop
-
pause
-
rewind
-
fadeOut
-
fadeIn
-
setPosition
- Overrides:
setPositionin classVSDSound
-
attachSourcesToEffects
int attachSourcesToEffects()Method to attach a source to effects- Overrides:
attachSourcesToEffectsin classVSDSound- Returns:
- 0 when failed, 1 when successful
-
detachSourcesToEffects
int detachSourcesToEffects()Method to detach a source to effects- Overrides:
detachSourcesToEffectsin classVSDSound- Returns:
- 0 when failed, 1 when successful
-
setURL
-
getLength
-
getLengthAsInt
-
setLength
-
setLength
-
calcLength
-
calcLength
-