FrameInputNodeQuantumStartedEventArgs.RequiredSamples Property

Definition

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

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

Property Value

Int32

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.

Applies to