AudioGraph.QuantumStarted AudioGraph.QuantumStarted AudioGraph.QuantumStarted AudioGraph.QuantumStarted AudioGraph.QuantumStarted Event


Notifies that the audio graph has started processing a new quantum.

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

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

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

audioGraph.addEventListener("quantumstarted", onQuantumStarted);
audioGraph.removeEventListener("quantumstarted", onQuantumStarted);

Additional features and requirements



The QuantumStarted event is synchronous, which means that you can't update the properties or state of the AudioGraph or the individual audio nodes in the handler for this event. Attempting perform an operation such as stopping the audio graph or adding, removing, or starting an individual audio node will result in an exception being thrown. You can change the state of the graph and its nodes from within the asynchronous QuantumProcessed event handler.

Because this event is synchronous and fires regularly on the processing cadence of the audio graph, the event handler can be used for synchronized processing of audio data, such as that obtained from the AudioFrameOutputNode.GetFrame method.