AudioGraph.QuantumProcessed AudioGraph.QuantumProcessed AudioGraph.QuantumProcessed AudioGraph.QuantumProcessed AudioGraph.QuantumProcessed Event


Notifies that the audio graph has processed the specified quantum.

public : event TypedEventHandler<AudioGraph, object> QuantumProcessed
// Register
event_token QuantumProcessed(TypedEventHandler<AudioGraph, object> const& handler) const;

// Revoke with event_token
void QuantumProcessed(event_token const& cookie) const;

// Revoke with event_revoker
QuantumProcessed_revoker QuantumProcessed(auto_revoke_t, TypedEventHandler<AudioGraph, object> const& handler) const;
public event TypedEventHandler<AudioGraph, object> QuantumProcessed
Public Event QuantumProcessed As TypedEventHandler (Of AudioGraph, object)
function onQuantumProcessed(eventArgs){/* Your code */}

audioGraph.addEventListener("quantumprocessed", onQuantumProcessed);
audioGraph.removeEventListener("quantumprocessed", onQuantumProcessed);

Additional features and requirements



The QuantumProcessed event is asynchronous, which means that you can update the properties and state of the AudioGraph and individual audio nodes in the handler for this event. However, because this event is asynchronous and raised only after the audio engine has completed processing, it is not raised on a regular cadence and it should not be used for synchronized processing of audio data such as that obtained from the AudioFrameOutputNode.GetFrame method. Instead, it is recommended that you use the QuantumStarted event for synchronized audio processing.