rasmus.interpreter.sampled.util
Class WaveUtils.ResampleStream

java.lang.Object
  extended by rasmus.interpreter.sampled.util.WaveUtils.ResampleStream
All Implemented Interfaces:
AudioStream
Enclosing class:
WaveUtils

public static class WaveUtils.ResampleStream
extends java.lang.Object
implements AudioStream


Constructor Summary
WaveUtils.ResampleStream(AudioStream input, double amount, int channels)
           
 
Method Summary
 void close()
           
 int isStatic(double[] buffer, int len)
           
 int mix(double[] buffer, int start, int end)
           
 int replace(double[] buffer, int start, int end)
           
 int skip(int len)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaveUtils.ResampleStream

public WaveUtils.ResampleStream(AudioStream input,
                                double amount,
                                int channels)
Method Detail

mix

public int mix(double[] buffer,
               int start,
               int end)
Specified by:
mix in interface AudioStream

replace

public int replace(double[] buffer,
                   int start,
                   int end)
Specified by:
replace in interface AudioStream

skip

public int skip(int len)
Specified by:
skip in interface AudioStream

isStatic

public int isStatic(double[] buffer,
                    int len)
Specified by:
isStatic in interface AudioStream

close

public void close()
Specified by:
close in interface AudioStream