Class stl_SNDCircular

java.lang.Object
com.jackmeng.stl.stl_SNDCircular

public class stl_SNDCircular
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    private stl_CircularBuffer buffer  
    private int buffer_size  
    private javax.sound.sampled.SourceDataLine line  
  • Constructor Summary

    Constructors
    Constructor Description
    stl_SNDCircular()  
    stl_SNDCircular​(int buffer_size, stl_CircularBuffer reference)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    void open​(java.io.File file)  
    void pause()  
    void play()  
    void stop()  

    Methods inherited from class java.lang.Object

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

    • line

      private javax.sound.sampled.SourceDataLine line
    • buffer

      private final stl_CircularBuffer buffer
    • buffer_size

      private final int buffer_size
  • Constructor Details

    • stl_SNDCircular

      public stl_SNDCircular()
    • stl_SNDCircular

      public stl_SNDCircular​(int buffer_size, stl_CircularBuffer reference)
  • Method Details

    • open

      public void open​(java.io.File file) throws java.io.IOException, javax.sound.sampled.LineUnavailableException, javax.sound.sampled.UnsupportedAudioFileException
      Throws:
      java.io.IOException
      javax.sound.sampled.LineUnavailableException
      javax.sound.sampled.UnsupportedAudioFileException
    • play

      public void play()
    • pause

      public void pause()
    • stop

      public void stop()
    • close

      public void close()