Package samer.audio

Interface AudioSource

    • Nested Class Summary

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void close() 
      void dispose() 
      int getChannels() 
      float getRate() 
      boolean isOpen() 
      void open() 
      Task reader(double[] buf, int off, int len)
      return a task which reads samples into the given buffer The idea is that the audio source can choose the right kind of reader depending on the format of the audio stream, and then handle the conversion to doubles automatically
      Task reader(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()
      • reader

        Task reader(double[] buf,
                    int off,
                    int len)
        return a task which reads samples into the given buffer The idea is that the audio source can choose the right kind of reader depending on the format of the audio stream, and then handle the conversion to doubles automatically
      • reader

        Task reader(float[] buf,
                    int off,
                    int len)
      • getChannels

        int getChannels()
      • getRate

        float getRate()