Package ca.phon.audio

Class Resampler

java.lang.Object
ca.phon.audio.Resampler

public final class Resampler extends Object
Resample given sampled.
  • Constructor Details

    • Resampler

      public Resampler()
  • Method Details

    • resample

      public Sampled resample(Sampled sampled, float newSampleRate)
    • resample

      public Sampled resample(Sampled sampled, float newSampleRate, int windowSize)
      Resample given sampled with provided sample rate and quality.
      Parameters:
      sampled -
      newSampleRate -
      windowSize - Hann window size in samples
      Returns:
      Sampled a new sampled with given sample rate
      Throws:
      IOException