Class AudioStreamTest.SineStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, IAudioStream
    Enclosing class:
    AudioStreamTest

    public static class AudioStreamTest.SineStream
    extends java.lang.Object
    implements IAudioStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static double DT  
      private static javax.sound.sampled.AudioFormat FORMAT  
      private static double value  
    • Constructor Summary

      Constructors 
      Constructor Description
      SineStream()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      javax.sound.sampled.AudioFormat getFormat()  
      java.nio.ByteBuffer read​(int capacity)  
      • Methods inherited from class java.lang.Object

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

      • FORMAT

        private static final javax.sound.sampled.AudioFormat FORMAT
      • value

        private static double value
    • Constructor Detail

      • SineStream

        public SineStream()
    • Method Detail

      • getFormat

        @Nonnull
        public javax.sound.sampled.AudioFormat getFormat()
        Specified by:
        getFormat in interface IAudioStream
      • read

        @Nonnull
        public java.nio.ByteBuffer read​(int capacity)
        Specified by:
        read in interface IAudioStream
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable