Utility class for resampling audio data. More...
Instance Methods | |
(double) | - factor |
Gets the resampling factor. More... | |
(int) | - getOutputLengthWithInput: |
Gets the length of the output given an input set. More... | |
(instancetype) | - initWithFactor: |
Initializes a new instance of the FMLiveSwitchResampler class. More... | |
(instancetype) | - initWithSourceClockRate:targetClockRate: |
Initializes a new instance of the FMLiveSwitchResampler class. More... | |
(bool) | - resampleWithInput:output: |
Resamples the given audio buffer. More... | |
(bool) | - resampleWithInput:output:lastBatch: |
Resamples the given audio buffer. More... | |
Class Methods | |
(int) | + defaultLowPassOrder |
Gets the default low pass order. More... | |
(FMLiveSwitchResampler *) | + resamplerWithFactor: |
Initializes a new instance of the FMLiveSwitchResampler class. More... | |
(FMLiveSwitchResampler *) | + resamplerWithSourceClockRate:targetClockRate: |
Initializes a new instance of the FMLiveSwitchResampler class. More... | |
(void) | + setDefaultLowPassOrder: |
Sets the default low pass order. More... | |
Utility class for resampling audio data.
+ (int) defaultLowPassOrder |
Gets the default low pass order.
- (double) factor |
Gets the resampling factor.
- (int) getOutputLengthWithInput: | (FMLiveSwitchDataBuffer *) | input |
Gets the length of the output given an input set.
input | The input. |
- (instancetype) initWithFactor: | (double) | factor |
Initializes a new instance of the FMLiveSwitchResampler class.
factor | The resampling factor. |
- (instancetype) initWithSourceClockRate: | (int) | sourceClockRate | |
targetClockRate: | (int) | targetClockRate | |
Initializes a new instance of the FMLiveSwitchResampler class.
sourceClockRate | The source clock rate. |
targetClockRate | The target clock rate. |
+ (FMLiveSwitchResampler*) resamplerWithFactor: | (double) | factor |
Initializes a new instance of the FMLiveSwitchResampler class.
factor | The resampling factor. |
+ (FMLiveSwitchResampler*) resamplerWithSourceClockRate: | (int) | sourceClockRate | |
targetClockRate: | (int) | targetClockRate | |
Initializes a new instance of the FMLiveSwitchResampler class.
sourceClockRate | The source clock rate. |
targetClockRate | The target clock rate. |
- (bool) resampleWithInput: | (FMLiveSwitchDataBuffer *) | input | |
output: | (FMLiveSwitchDataBuffer *) | output | |
Resamples the given audio buffer.
input | The input to resample. |
output | The output to target. |
- (bool) resampleWithInput: | (FMLiveSwitchDataBuffer *) | input | |
output: | (FMLiveSwitchDataBuffer *) | output | |
lastBatch: | (bool) | 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 , input will be read to the end. |
true
if the resampling operation was successful; otherwise, false
. + (void) setDefaultLowPassOrder: | (int) | value |
Sets the default low pass order.