Partager via


Microphone.SampleRate Property

Returns the sample rate at which the microphone is capturing audio data.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public int SampleRate { get; }

Property Value

Sample rate of audio data being captured, in Hertz (Hz).

See Also

Microphone Class
Microphone Members
Microsoft.Xna.Framework.Audio Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone