How to simply make a sound or beep in wp7?

I just do not want to sound to remind my user, there is a new message, I do not want to use mediaElement. Is there any other choice?

+3
source share
1 answer

Add the link to the Microsoft.Xna.Framework assembly to your project.

var stream = TitleContainer.OpenStream("cat.wav");
var effect = SoundEffect.FromStream(stream);
FrameworkDispatcher.Update();
effect.Play();
+6
source

Source: https://habr.com/ru/post/1790441/


All Articles