Share via


AudioGraphSettings.DesiredSamplesPerQuantum Property

Definition

Gets or sets the desired number of samples per quantum defined for the audio graph.

public:
 property int DesiredSamplesPerQuantum { int get(); void set(int value); };
int DesiredSamplesPerQuantum();

void DesiredSamplesPerQuantum(int value);
public int DesiredSamplesPerQuantum { get; set; }
var int32 = audioGraphSettings.desiredSamplesPerQuantum;
audioGraphSettings.desiredSamplesPerQuantum = int32;
Public Property DesiredSamplesPerQuantum As Integer

Property Value

Int32

int

The number of samples per quantum.

Windows requirements

App capabilities
backgroundMediaRecording

Remarks

Note that this property value is only valid if the QuantumSizeSelectionMode property is set to ClosestToDesired.

If the audio graph you created is intended to be used exclusively with files, it is strongly recommended that you set the QuantumSizeSelectionMode to SystemDefault.

Setting this property does not guarantee that the specified value will be used by the created audio graph. To determine the actual value used, check the AudioGraph.SamplesPerQuantum property of the audio graph after it has been created.

Applies to