org.mobicents.media.server.component.audio
Class Resampler
java.lang.Object
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 |
Resampler
public Resampler(int f,
int F)
- Creates new resampler.
- Parameters:
f - the sampling rate of the original signal in HertzF - the sampling rate of the new signal in Hertz.
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.