共用方式為


AudioFormat.SampleRate Property

Note

This property is available only when developing for Windows.

Gets the sample rate of the audio content.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Audio
Assembly: (in )

Syntax

public int SampleRate { get; }

Property Value

If the audio has not been processed, the source sample rate; otherwise, the new sample rate.

See Also

Reference

AudioFormat Class
AudioFormat Members
Microsoft.Xna.Framework.Content.Pipeline.Audio Namespace

Platforms

Windows 7, Windows Vista, Windows XP