Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AudioGraphSettings.DesiredSamplesPerQuantum Property

Definition

Namespace:
Windows.Media.Audio

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Requirements Description
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


Feedback

Was this page helpful?