Package samer.audio

Interface AudioSink

  • All Known Implementing Classes:
    FileSink, LineSink


    public interface AudioSink
    General interface for objects that accept a stream of samples.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface and Description
      static class  AudioSink.Util 
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void close() 
      void dispose() 
      boolean isOpen() 
      void open() 
      Task writer(double[] buf, int off, int len)
      Return a task which takes samples from the given buffer The idea is that the audio sink can choose the right kind of writer depending on the format of the audio stream, and then handle any conversions automatically.
      Task writer(float[] buf, int off, int len) 
    • Method Detail

      • isOpen

        boolean isOpen()
      • open

        void open()
           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • close

        void close()
      • dispose

        void dispose()
      • writer

        Task writer(double[] buf,
                    int off,
                    int len)
        Return a task which takes samples from the given buffer The idea is that the audio sink can choose the right kind of writer depending on the format of the audio stream, and then handle any conversions automatically.
      • writer

        Task writer(float[] buf,
                    int off,
                    int len)