Click here to Skip to main content
15,892,965 members
Articles / Mobile Apps / Windows Phone 7

Rendering the audio captured by a Windows Phone device

Rate me:
Please Sign up or sign in to vote.
4.92/5 (10 votes)
12 Mar 2012CPOL5 min read 20.3K   399   17  
A small app that displays the audio captured by the microphone of a Windows Phone device and displays it as a continous waveform on the screen using the XNA framework.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;

// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Waveform")]
[assembly: AssemblyProduct("Waveform")]
[assembly: AssemblyDescription("Displays the audio waveform captured by the microphone")]
[assembly: AssemblyCompany("Laserbrain")]
[assembly: AssemblyCopyright("Copyright © Laserbrain 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible 
// to COM components.  If you need to access a type in this assembly from 
// COM, set the ComVisible attribute to true on that type. Only Windows
// assemblies support COM.
[assembly: ComVisible(false)]

// On Windows, the following GUID is for the ID of the typelib if this
// project is exposed to COM. On other platforms, it unique identifies the
// title storage container when deploying this assembly to the device.
[assembly: Guid("6da9522d-b3f9-4890-a6ed-c173d8a53e81")]

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Diversify
Sweden Sweden
I work as a senior software developer for the expert consulting firm Diversify in Malmö, Sweden.

Comments and Discussions