FMIceLinkSoundUtility Class Reference

Inherits from NSObject
Declared in FMIceLinkSoundUtility.h
FMIceLinkSoundUtility.m

Overview

Sound utility methods.

+ calculateDataLengthFloatWithDuration:clockRate:channelCount:

Calculates the number of bytes in a given audio chunk given its duration (ms), clock rate, and channel count.
+ (int)calculateDataLengthFloatWithDuration:(int)duration clockRate:(int)clockRate channelCount:(int)channelCount

Parameters

duration

The duration.

clockRate

The clock rate.

channelCount

The channel count. @return

Discussion

Calculates the number of bytes in a given audio chunk given its duration (ms), clock rate, and channel count.

Declared In

FMIceLinkSoundUtility.h

+ calculateDataLengthFloatWithDuration:config:

Calculates the number of bytes in a given audio chunk given its duration (ms), clock rate, and channel count.
+ (int)calculateDataLengthFloatWithDuration:(int)duration config:(FMIceLinkAudioConfig *)config

Parameters

duration

The duration.

config

The configuration. @return

Discussion

Calculates the number of bytes in a given audio chunk given its duration (ms), clock rate, and channel count.

Declared In

FMIceLinkSoundUtility.h

+ calculateDataLengthWithDuration:clockRate:channelCount:

Calculates the number of bytes in a given audio chunk given its duration (ms), clock rate, and channel count.
+ (int)calculateDataLengthWithDuration:(int)duration clockRate:(int)clockRate channelCount:(int)channelCount

Parameters

duration

The duration.

clockRate

The clock rate.

channelCount

The channel count. @return

Discussion

Calculates the number of bytes in a given audio chunk given its duration (ms), clock rate, and channel count.

Declared In

FMIceLinkSoundUtility.h

+ calculateDataLengthWithDuration:config:

Calculates the number of bytes in a given audio chunk given its duration (ms), clock rate, and channel count.
+ (int)calculateDataLengthWithDuration:(int)duration config:(FMIceLinkAudioConfig *)config

Parameters

duration

The duration.

config

The configuration. @return

Discussion

Calculates the number of bytes in a given audio chunk given its duration (ms), clock rate, and channel count.

Declared In

FMIceLinkSoundUtility.h

+ calculateDurationFloatWithDataLength:clockRate:channelCount:

Calculates the duration of an audio chunk given its data length (the number of bytes), clock rate, and channel count.
+ (int)calculateDurationFloatWithDataLength:(int)dataLength clockRate:(int)clockRate channelCount:(int)channelCount

Parameters

dataLength

The length of the audio chunk.

clockRate

The clock rate.

channelCount

The channel count.

Discussion

Calculates the duration of an audio chunk given its data length (the number of bytes), clock rate, and channel count.

Declared In

FMIceLinkSoundUtility.h

+ calculateDurationFloatWithDataLength:config:

Calculates the duration of an audio chunk given its data length (the number of bytes), clock rate, and channel count.
+ (int)calculateDurationFloatWithDataLength:(int)dataLength config:(FMIceLinkAudioConfig *)config

Parameters

dataLength

The length of the audio chunk.

config

The configuration. @return

Discussion

Calculates the duration of an audio chunk given its data length (the number of bytes), clock rate, and channel count.

Declared In

FMIceLinkSoundUtility.h

+ calculateDurationWithDataLength:clockRate:channelCount:

Calculates the duration of an audio chunk given its data length (the number of bytes), clock rate, and channel count.
+ (int)calculateDurationWithDataLength:(int)dataLength clockRate:(int)clockRate channelCount:(int)channelCount

Parameters

dataLength

The length of the audio chunk.

clockRate

The clock rate.

channelCount

The channel count.

Discussion

Calculates the duration of an audio chunk given its data length (the number of bytes), clock rate, and channel count.

Declared In

FMIceLinkSoundUtility.h

+ calculateDurationWithDataLength:config:

Calculates the duration of an audio chunk given its data length (the number of bytes), clock rate, and channel count.
+ (int)calculateDurationWithDataLength:(int)dataLength config:(FMIceLinkAudioConfig *)config

Parameters

dataLength

The length of the audio chunk.

config

The configuration. @return

Discussion

Calculates the duration of an audio chunk given its data length (the number of bytes), clock rate, and channel count.

Declared In

FMIceLinkSoundUtility.h

+ floatFromShort:

Converts a short value to a floating-point value.
+ (float)floatFromShort:(short)value

Parameters

value

The short value.

Return Value

The floating-point value.

Discussion

Converts a short value to a floating-point value.

Declared In

FMIceLinkSoundUtility.h

+ monoToStereoWithMono:stereo:

Converts each sample into two identical samples.
+ (FMIceLinkDataBuffer *)monoToStereoWithMono:(FMIceLinkDataBuffer *)mono stereo:(FMIceLinkDataBuffer *)stereo

Return Value

A new FMIceLinkDataBufferPooled or null.

Discussion

Converts each sample into two identical samples.

Declared In

FMIceLinkSoundUtility.h

+ shortFromFloat:

Converts a floating-point value to a short value.
+ (short)shortFromFloat:(float)value

Parameters

value

The floating-point value.

Return Value

The short value.

Discussion

Converts a floating-point value to a short value.

Declared In

FMIceLinkSoundUtility.h

+ stereoToMonoWithStereo:mono:

Converts each pair of samples into one mixed sample.
+ (FMIceLinkDataBuffer *)stereoToMonoWithStereo:(FMIceLinkDataBuffer *)stereo mono:(FMIceLinkDataBuffer *)mono

Return Value

A new FMIceLinkDataBufferPooled or null.

Discussion

Converts each pair of samples into one mixed sample.

Declared In

FMIceLinkSoundUtility.h