AudioFrameOutputNode.GetFrame AudioFrameOutputNode.GetFrame AudioFrameOutputNode.GetFrame AudioFrameOutputNode.GetFrame AudioFrameOutputNode.GetFrame Method

Definition

Gets an audio frame containing all of the data accumulated by this node since the previous call to GetFrame. If GetFrame has not yet been called, the audio frame will contain all of the data accumulated since the node was created.

public : AudioFrame GetFrame()
AudioFrame GetFrame() const;
public AudioFrame GetFrame()
Public Function GetFrame() As AudioFrame
var audioFrame = audioFrameOutputNode.getFrame();

Returns

An AudioFrame object representing the frame.

Remarks

If you want to retrieve audio frames on a regular cadence, synchronized with the audio graph, you can call this method from within the synchronous QuantumStarted event handler. The QuantumProcessed event is raised asynchronously after the audio engine has completed audio processing, which means its cadence may be irregular. Therefore you should not use the QuantumProcessed event for synchronized processing of audio frame data.