Class BeadsSampleWrapper

  • java.lang.Object
    • uk.ac.qmul.eecs.depic.daw.beads.BeadsSampleWrapper
  • All Implemented Interfaces:
    Sample


    public class BeadsSampleWrapper
    extends java.lang.Object
    implements Sample
    wraps a net.beadsproject.beads.data.Sample into a uk.ac.qmul.eecs.depic.daw.Sample so that the former can be used as the latter in the uk.ac.qmul.eecs.depic.daw package.
    • Constructor Detail

      • BeadsSampleWrapper

        public BeadsSampleWrapper(net.beadsproject.beads.data.Sample delegate)
    • Method Detail

      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getFrame

        public void getFrame(int arg0,
                             float[] arg1)
        Specified by:
        getFrame in interface Sample
      • getFrameCubic

        public void getFrameCubic(double arg0,
                                  float[] arg1)
        Specified by:
        getFrameCubic in interface Sample
      • getFrameLinear

        public void getFrameLinear(double arg0,
                                   float[] arg1)
        Specified by:
        getFrameLinear in interface Sample
      • getFrameNoInterp

        public void getFrameNoInterp(double arg0,
                                     float[] arg1)
        Specified by:
        getFrameNoInterp in interface Sample
      • getFrames

        public void getFrames(int arg0,
                              float[][] arg1)
        Specified by:
        getFrames in interface Sample
      • getLength

        public float getLength()
        Specified by:
        getLength in interface Sample
      • getNumFrames

        public long getNumFrames()
        Specified by:
        getNumFrames in interface Sample
      • getSampleRate

        public float getSampleRate()
        Specified by:
        getSampleRate in interface Sample
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • msToSamples

        public double msToSamples(double arg0)
        Specified by:
        msToSamples in interface Sample
      • run

        public void run()
      • samplesToMs

        public double samplesToMs(double arg0)
        Specified by:
        samplesToMs in interface Sample
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object