FMIceLinkResampler Class Reference

Inherits from NSObject
Declared in FMIceLinkResampler.h
FMIceLinkResampler.m

Overview

Utility class for resampling audio data.

+ defaultLowPassOrder

Gets the default low pass order.
+ (int)defaultLowPassOrder

Discussion

Gets the default low pass order.

Declared In

FMIceLinkResampler.h

– factor

Gets the resampling factor.
- (double)factor

Discussion

Gets the resampling factor.

Declared In

FMIceLinkResampler.h

– getOutputLengthWithInput:

Gets the length of the output given an input set.
- (int)getOutputLengthWithInput:(FMIceLinkDataBuffer *)input

Parameters

input

The input. @return

Discussion

Gets the length of the output given an input set.

Declared In

FMIceLinkResampler.h

– initWithFactor:

Initializes a new instance of the FMIceLinkResampler class.
- (instancetype)initWithFactor:(double)factor

Parameters

factor

The resampling factor.

Discussion

Initializes a new instance of the FMIceLinkResampler class.

Declared In

FMIceLinkResampler.h

– initWithSourceClockRate:targetClockRate:

Initializes a new instance of the FMIceLinkResampler class.
- (instancetype)initWithSourceClockRate:(int)sourceClockRate targetClockRate:(int)targetClockRate

Parameters

sourceClockRate

The source clock rate.

targetClockRate

The target clock rate.

Discussion

Initializes a new instance of the FMIceLinkResampler class.

Declared In

FMIceLinkResampler.h

+ resamplerWithFactor:

Initializes a new instance of the FMIceLinkResampler class.
+ (FMIceLinkResampler *)resamplerWithFactor:(double)factor

Parameters

factor

The resampling factor.

Discussion

Initializes a new instance of the FMIceLinkResampler class.

Declared In

FMIceLinkResampler.h

+ resamplerWithSourceClockRate:targetClockRate:

Initializes a new instance of the FMIceLinkResampler class.
+ (FMIceLinkResampler *)resamplerWithSourceClockRate:(int)sourceClockRate targetClockRate:(int)targetClockRate

Parameters

sourceClockRate

The source clock rate.

targetClockRate

The target clock rate.

Discussion

Initializes a new instance of the FMIceLinkResampler class.

Declared In

FMIceLinkResampler.h

– resampleWithInput:output:

Resamples the given audio buffer.
- (bool)resampleWithInput:(FMIceLinkDataBuffer *)input output:(FMIceLinkDataBuffer *)output

Parameters

input

The input to resample.

output

The output to target.

Discussion

Resamples the given audio buffer.

Declared In

FMIceLinkResampler.h

– resampleWithInput:output:lastBatch:

Resamples the given audio buffer.
- (bool)resampleWithInput:(FMIceLinkDataBuffer *)input output:(FMIceLinkDataBuffer *)output lastBatch:(bool)lastBatch

Parameters

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.

Return Value

true if the resampling operation was successful; otherwise, false.

Discussion

Resamples the given audio buffer.

Declared In

FMIceLinkResampler.h

+ setDefaultLowPassOrder:

Sets the default low pass order.
+ (void)setDefaultLowPassOrder:(int)value

Discussion

Sets the default low pass order.

Declared In

FMIceLinkResampler.h