org.mobicents.media.server.component.audio
Class Resampler

java.lang.Object
  extended by org.mobicents.media.server.component.audio.Resampler

public class Resampler
extends Object

Peforms resampling of the signal.

Author:
kulikov

Constructor Summary
Resampler(int f, int F)
          Creates new resampler.
 
Method Summary
 double[] perform(double[] buffer, int len)
          Performs resampling of the given signal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resampler

public Resampler(int f,
                 int F)
Creates new resampler.

Parameters:
f - the sampling rate of the original signal in Hertz
F - the sampling rate of the new signal in Hertz.
Method Detail

perform

public double[] perform(double[] buffer,
                        int len)
Performs resampling of the given signal.

Parameters:
buffer - the buffer containing the signal.
len - the length of the signal in bytes.
Returns:
resampled signal


Copyright © 2011. All Rights Reserved.