FMIceLinkAudioClock Class Reference

Inherits from NSObject
Declared in FMIceLinkAudioClock.h
FMIceLinkAudioClock.m

Overview

A clock used to raise audio data in appropriate intervals.

+ audioClockWithClockRate:channelCount:blockAlign:raiseCallback:

Creates a new AudioClock.
+ (FMIceLinkAudioClock *)audioClockWithClockRate:(int)clockRate channelCount:(int)channelCount blockAlign:(int)blockAlign raiseCallback:(FMIceLinkAction2 *)raiseCallback

Parameters

clockRate

The clock rate to use.

channelCount

How many channels the audio will have.

blockAlign

The block align of the source data.

raiseCallback

The callback that will be invoked when data is needed.

Discussion

Creates a new AudioClock.

Declared In

FMIceLinkAudioClock.h

+ audioClockWithClockRate:channelCount:blockAlign:raiseCallbackBlock:

Creates a new AudioClock.
+ (FMIceLinkAudioClock *)audioClockWithClockRate:(int)clockRate channelCount:(int)channelCount blockAlign:(int)blockAlign raiseCallbackBlock:(void ( ^ ) ( int , int ))raiseCallbackBlock

Parameters

clockRate

The clock rate to use.

channelCount

How many channels the audio will have.

blockAlign

The block align of the source data.

raiseCallbackBlock

The callback that will be invoked when data is needed.

Discussion

Creates a new AudioClock.

Declared In

FMIceLinkAudioClock.h

+ audioClockWithClockRate:channelCount:raiseCallback:

Creates a new AudioClock.
+ (FMIceLinkAudioClock *)audioClockWithClockRate:(int)clockRate channelCount:(int)channelCount raiseCallback:(FMIceLinkAction2 *)raiseCallback

Parameters

clockRate

The clock rate to use.

channelCount

How many channels the audio will have.

raiseCallback

The callback that will be invoked when data is needed.

Discussion

Creates a new AudioClock.

Declared In

FMIceLinkAudioClock.h

+ audioClockWithClockRate:channelCount:raiseCallbackBlock:

Creates a new AudioClock.
+ (FMIceLinkAudioClock *)audioClockWithClockRate:(int)clockRate channelCount:(int)channelCount raiseCallbackBlock:(void ( ^ ) ( int , int ))raiseCallbackBlock

Parameters

clockRate

The clock rate to use.

channelCount

How many channels the audio will have.

raiseCallbackBlock

The callback that will be invoked when data is needed.

Discussion

Creates a new AudioClock.

Declared In

FMIceLinkAudioClock.h

– blockAlign

Gets the BlockAlign.
- (int)blockAlign

Discussion

Gets the BlockAlign.

Declared In

FMIceLinkAudioClock.h

– channelCount

Gets the audio's channel count.
- (int)channelCount

Discussion

Gets the audio's channel count.

Declared In

FMIceLinkAudioClock.h

– clockRate

Gets the audio's clock rate.
- (int)clockRate

Discussion

Gets the audio's clock rate.

Declared In

FMIceLinkAudioClock.h

– initWithClockRate:channelCount:blockAlign:raiseCallback:

Creates a new AudioClock.
- (instancetype)initWithClockRate:(int)clockRate channelCount:(int)channelCount blockAlign:(int)blockAlign raiseCallback:(FMIceLinkAction2 *)raiseCallback

Parameters

clockRate

The clock rate to use.

channelCount

How many channels the audio will have.

blockAlign

The block align of the source data.

raiseCallback

The callback that will be invoked when data is needed.

Discussion

Creates a new AudioClock.

Declared In

FMIceLinkAudioClock.h

– initWithClockRate:channelCount:blockAlign:raiseCallbackBlock:

Creates a new AudioClock.
- (instancetype)initWithClockRate:(int)clockRate channelCount:(int)channelCount blockAlign:(int)blockAlign raiseCallbackBlock:(void ( ^ ) ( int , int ))raiseCallbackBlock

Parameters

clockRate

The clock rate to use.

channelCount

How many channels the audio will have.

blockAlign

The block align of the source data.

raiseCallbackBlock

The callback that will be invoked when data is needed.

Discussion

Creates a new AudioClock.

Declared In

FMIceLinkAudioClock.h

– initWithClockRate:channelCount:raiseCallback:

Creates a new AudioClock.
- (instancetype)initWithClockRate:(int)clockRate channelCount:(int)channelCount raiseCallback:(FMIceLinkAction2 *)raiseCallback

Parameters

clockRate

The clock rate to use.

channelCount

How many channels the audio will have.

raiseCallback

The callback that will be invoked when data is needed.

Discussion

Creates a new AudioClock.

Declared In

FMIceLinkAudioClock.h

– initWithClockRate:channelCount:raiseCallbackBlock:

Creates a new AudioClock.
- (instancetype)initWithClockRate:(int)clockRate channelCount:(int)channelCount raiseCallbackBlock:(void ( ^ ) ( int , int ))raiseCallbackBlock

Parameters

clockRate

The clock rate to use.

channelCount

How many channels the audio will have.

raiseCallbackBlock

The callback that will be invoked when data is needed.

Discussion

Creates a new AudioClock.

Declared In

FMIceLinkAudioClock.h

– running

Gets whether the clock is running.
- (bool)running

Discussion

Gets whether the clock is running.

Declared In

FMIceLinkAudioClock.h

– setStrictDuration:

Sets the strict duration, in milliseconds. If 0, then variable duration is used. If greater than zero, then the clock will only raise frames of that duration.
- (void)setStrictDuration:(int)value

Discussion

Sets the strict duration, in milliseconds. If 0, then variable duration is used. If greater than zero, then the clock will only raise frames of that duration.

Declared In

FMIceLinkAudioClock.h

– start

Starts the audio clock.
- (void)start

Discussion

Starts the audio clock.

Declared In

FMIceLinkAudioClock.h

– stop

Stops the audio clock.
- (void)stop

Discussion

Stops the audio clock.

Declared In

FMIceLinkAudioClock.h

– strictDuration

Gets the strict duration, in milliseconds. If 0, then variable duration is used. If greater than zero, then the clock will only raise frames of that duration.
- (int)strictDuration

Discussion

Gets the strict duration, in milliseconds. If 0, then variable duration is used. If greater than zero, then the clock will only raise frames of that duration.

Declared In

FMIceLinkAudioClock.h