Microphone Sample
Area |
Submitted |
Type |
Games: Audio, Sensors |
11/19/2010 |
Code Sample |
|
|
|
Sample Overview
This sample demonstrates how to get audio input from the microphone in a Silverlight for Windows Phone application by using the Microsoft.Xna.Framework.Audio.Microphone class. It also shows how to play audio by using the SoundEffect and SoundEffectInstance classes. The code monitors audio playback on a separate thread and updates the user interface when the sound stops playing. For more information about accessing the microphone in a Silverlight application, see How to: Access the Microphone in a Silverlight Application for Windows Phone.