Package jmri.jmrit

Class Sound.StreamingSound

java.lang.Object
jmri.jmrit.Sound.StreamingSound
All Implemented Interfaces:
Runnable
Enclosing class:
Sound

public class Sound.StreamingSound extends Object implements Runnable
  • Constructor Summary

    Constructors
    Constructor
    Description
    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(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

    Modifier and Type
    Method
    Description
    void
    run()

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StreamingSound

      public StreamingSound(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(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 media
      count - the number of times to loop
  • Method Details