AUHostTransportStateBlock Delegate

Definition

A delegate block that a host uses to provide information about its transport state.

public delegate bool AUHostTransportStateBlock(ref AUHostTransportStateFlags transportStateFlags, ref double currentSamplePosition, ref double cycleStartBeatPosition, ref double cycleEndBeatPosition);
type AUHostTransportStateBlock = delegate of  *  *  *  -> bool

Parameters

transportStateFlags
AUHostTransportStateFlags

The state of the audio transport.

currentSamplePosition
Double

The host sample position, in audio unit samples.

cycleStartBeatPosition
Double

The starting beat position for the cycle. null if not cycling.

cycleEndBeatPosition
Double

The ending beat position for the cycle. null if not cycling.

Return Value

true if the state was successfully retrieved. Otherwise, false.

Remarks

Developers may optionally assign an instance of this class to the TransportStateBlock property so that they can call it at the beginning of render cycles to get the transport state at the cycle start.

Applies to