Package samer.units

Class LineOut

  • java.lang.Object
    • samer.units.LineOut
  • All Implemented Interfaces:
    Task


    public class LineOut
    extends java.lang.Object
    implements Task
    A class which takes real valued samples from a VVector, converts them to 16 bit integer samples, and writes them to an audio device.

    Can optionally output only a sub-window of input vector This window is adjustable on the fly, so, for example, we can output the last M samples of a sliding window.

    • Constructor Detail

      • LineOut

        public LineOut(Vec buf,
                       AudioSink sink)
                throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • input

        public Vec input()
      • setSink

        public void setSink(AudioSink sink)
      • setInput

        public void setInput(Vec vec)
      • setWindow

        public void setWindow(int a,
                              int b)
      • dispose

        public void dispose()
        Specified by:
        dispose in interface Task
      • starting

        public void starting()
        Specified by:
        starting in interface Task
      • stopping

        public void stopping()
        Specified by:
        stopping in interface Task
      • run

        public void run()
                 throws java.lang.Exception
        Specified by:
        run in interface Task
        Throws:
        java.lang.Exception