Package jmri.jmrit

Class 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()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 media
        count - the number of times to loop
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable