AudioFrameInputNode.QuantumStarted AudioFrameInputNode.QuantumStarted AudioFrameInputNode.QuantumStarted AudioFrameInputNode.QuantumStarted AudioFrameInputNode.QuantumStarted Event

Definition

Raised when the audio graph is ready to begin processing a new quantum of data.

public : event TypedEventHandler<AudioFrameInputNode, FrameInputNodeQuantumStartedEventArgs> QuantumStarted
// Register
event_token QuantumStarted(TypedEventHandler<AudioFrameInputNode, FrameInputNodeQuantumStartedEventArgs> 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<AudioFrameInputNode, FrameInputNodeQuantumStartedEventArgs> const& handler) const;
public event TypedEventHandler<AudioFrameInputNode, FrameInputNodeQuantumStartedEventArgs> QuantumStarted
Public Event QuantumStarted As TypedEventHandler (Of AudioFrameInputNode, FrameInputNodeQuantumStartedEventArgs)
function onQuantumStarted(eventArgs){/* Your code */}


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

Remarks

Use the FrameInputNodeQuantumStartedEventArgs.RequiredSamples property to determine how many samples are required to fill the quantum with data. Pass an AudioFrame into the AddFrame method to provide the required audio samples.