Microphone.GetData Method

Gets the latest recorded data from the microphone.

NameDescription
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.

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.

Community Additions

ADD
Show: