AudioFrameInputNode.QuantumStarted Event

Definition

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

// Register
event_token QuantumStarted(TypedEventHandler<AudioFrameInputNode, FrameInputNodeQuantumStartedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AudioFrameInputNode::QuantumStarted_revoker QuantumStarted(auto_revoke_t, TypedEventHandler<AudioFrameInputNode, FrameInputNodeQuantumStartedEventArgs const&> const& handler) const;
public event TypedEventHandler<AudioFrameInputNode,FrameInputNodeQuantumStartedEventArgs> QuantumStarted;
function onQuantumStarted(eventArgs) { /* Your code */ }
audioFrameInputNode.addEventListener("quantumstarted", onQuantumStarted);
audioFrameInputNode.removeEventListener("quantumstarted", onQuantumStarted);
- or -
audioFrameInputNode.onquantumstarted = onQuantumStarted;
Public Custom Event QuantumStarted As TypedEventHandler(Of AudioFrameInputNode, FrameInputNodeQuantumStartedEventArgs) 

Event Type

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.

Applies to