I am building a Windows Store (Metro) application using XAML and C#. I would like to play a simple tone and be able to control the duration and pitch; the kind of thing we used to do with Console.Beep.

I found Play dynamically-created simple sounds in C# without external libraries but it references SoundPlayer (System.Media namespace) which doesn't appear to be supported for this type of application (unless of course I am missing something).

Does anyone have an example of generating a sound (not playing a wav file) in a metro app?

Edit
Report