-api-id | -api-type |
---|---|
M:Windows.Media.Audio.AudioFrameOutputNode.GetFrame |
winrt method |
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.
An AudioFrame object representing the frame.
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.