Partager via


Microphone.GetData Method

Gets the latest recorded data from the microphone.

Overload List

Name Description
Microphone.GetData (Byte[]) Gets the latest recorded data from the microphone based on the audio capture buffer.
Microphone.GetData (Byte[], Int32, Int32) Gets the latest captured audio data from the microphone based on the specified offset and byte count.

Remarks

Silverlight applications must ensure that FrameworkDispatcher.Update is called regularly in order for "fire and forget" sounds to work correctly. GetData throws an InvalidOperationException if FrameworkDispatcher.Update has not been called at least once before making this call. For more information, see Enable XNA Framework Events in Windows Phone Applications.

See Also

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