Dela via


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:
 virtual AudioFrame ^ GetFrame() = GetFrame;
AudioFrame GetFrame();
public AudioFrame GetFrame();
function getFrame()
Public Function GetFrame () As AudioFrame

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.

Applies to