FrameInputNodeQuantumStartedEventArgs.RequiredSamples FrameInputNodeQuantumStartedEventArgs.RequiredSamples FrameInputNodeQuantumStartedEventArgs.RequiredSamples FrameInputNodeQuantumStartedEventArgs.RequiredSamples FrameInputNodeQuantumStartedEventArgs.RequiredSamples Property

Definition

Gets the number of samples that the audio graph requires to fill the quantum with data.

public : int RequiredSamples { get; }
int32_t RequiredSamples();
public int RequiredSamples { get; }
Public ReadOnly Property RequiredSamples As int
var int = frameInputNodeQuantumStartedEventArgs.requiredSamples;

Property Value

int int int

The number of samples that the audio graph requires to fill the quantum with data.

Remarks

Pass an AudioFrame into the AddFrame method to provide the required audio samples. It is recommended that you only submit the number of samples requested by the audio graph. Submitting extra samples can result in latency in the audio graph.

If the amount of data currently in the node is more than enough to fill one quantum, RequiredSamples will be 0.