Utility class for resampling audio data. More...
Public Member Functions | |
| double | getFactor () |
| Gets the resampling factor. More... | |
| int | getOutputLength (fm.liveswitch.DataBuffer input) |
| Gets the length of the output given an input set. More... | |
| boolean | resample (fm.liveswitch.DataBuffer input, fm.liveswitch.DataBuffer output) |
| Resamples the given audio buffer. More... | |
| boolean | resample (fm.liveswitch.DataBuffer input, fm.liveswitch.DataBuffer output, boolean lastBatch) |
| Resamples the given audio buffer. More... | |
| Resampler (double factor) | |
| Initializes a new instance of the fm.liveswitch.Resampler class. More... | |
| Resampler (int sourceClockRate, int targetClockRate) | |
| Initializes a new instance of the fm.liveswitch.Resampler class. More... | |
Static Public Member Functions | |
| static int | getDefaultLowPassOrder () |
| Gets the default low pass order. More... | |
| static void | setDefaultLowPassOrder (int value) |
| Sets the default low pass order. More... | |
Utility class for resampling audio data.
| fm.liveswitch.Resampler.Resampler | ( | double | factor | ) |
Initializes a new instance of the fm.liveswitch.Resampler class.
| factor | The resampling factor. |
| fm.liveswitch.Resampler.Resampler | ( | int | sourceClockRate, |
| int | targetClockRate | ||
| ) |
Initializes a new instance of the fm.liveswitch.Resampler class.
| sourceClockRate | The source clock rate. |
| targetClockRate | The target clock rate. |
|
static |
Gets the default low pass order.
| double fm.liveswitch.Resampler.getFactor | ( | ) |
Gets the resampling factor.
| int fm.liveswitch.Resampler.getOutputLength | ( | fm.liveswitch.DataBuffer | input | ) |
Gets the length of the output given an input set.
| input | The input. |
| boolean fm.liveswitch.Resampler.resample | ( | fm.liveswitch.DataBuffer | input, |
| fm.liveswitch.DataBuffer | output | ||
| ) |
Resamples the given audio buffer.
| input | The input to resample. |
| output | The output to target. |
| boolean fm.liveswitch.Resampler.resample | ( | fm.liveswitch.DataBuffer | input, |
| fm.liveswitch.DataBuffer | output, | ||
| boolean | lastBatch | ||
| ) |
Resamples the given audio buffer.
| input | The input to resample. |
| output | The output to target. |
| lastBatch | Whether or not this is the last batch. If true
|
|
static |
Sets the default low pass order.