Package jmri.jmrit
Class Sound.StreamingSound
- java.lang.Object
-
- jmri.jmrit.Sound.StreamingSound
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- Sound
public class Sound.StreamingSound extends java.lang.Object implements java.lang.Runnable
-
-
Constructor Summary
Constructors Constructor Description StreamingSound(java.net.URL url)
A runnable to stream in sound and play it This method does not read in an entire large sound file at one time, but instead reads in smaller chunks as needed.StreamingSound(java.net.URL url, int count)
A runnable to stream in sound and play it This method does not read in an entire large sound file at one time, but instead reads in smaller chunks as needed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
-
-
Constructor Detail
-
StreamingSound
public StreamingSound(java.net.URL url)
A runnable to stream in sound and play it This method does not read in an entire large sound file at one time, but instead reads in smaller chunks as needed.- Parameters:
url
- the URL containing audio media
-
StreamingSound
public StreamingSound(java.net.URL url, int count)
A runnable to stream in sound and play it This method does not read in an entire large sound file at one time, but instead reads in smaller chunks as needed.- Parameters:
url
- the URL containing audio mediacount
- the number of times to loop
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
-