Düzenle

Aracılığıyla paylaş


RenderDelegate Delegate

Definition

Signature used by AudioUnit callbacks that provide audio samples to an AudioUnit.

public delegate AudioUnit.AudioUnitStatus RenderDelegate(AudioUnitRenderActionFlags actionFlags, AudioTimeStamp timeStamp, uint busNumber, uint numberFrames, AudioBuffers data);
type RenderDelegate = delegate of AudioUnitRenderActionFlags * AudioTimeStamp * uint32 * uint32 * AudioBuffers -> AudioUnitStatus

Parameters

actionFlags
AudioUnitRenderActionFlags

Context for the operation of this call.

timeStamp
AudioTimeStamp

Timestamp for this render operation.

busNumber
UInt32

Bus number.

numberFrames
UInt32

Number of frames.

data
AudioBuffers

AudioBuffers that will hold the data.

Return Value

An OSX/iOS Status code.

Remarks

void SetupRender ()
{
    var convertNode = auGraph.AddNode (AudioComponentDescription.CreateConverter (AudioTypeConverter.AU));
    var convertUnit = auGraph.GetNodeInfo (convertToEffectNode);

    convertUnit.SetRenderCallback (ConvertInputRenderCallback, AudioUnitScopeType.Global) 
}

AudioUnitStatus ConvertInputRenderCallback (AudioUnitRenderActionFlags actionFlags, AudioTimeStamp timeStamp, uint busNumber, uint numberFrames, AudioBuffers data)
{
    data.SetData (0, preRenderData);
    return AudioUnitStatus.NoError;
}

Applies to