a_rahmanshah
a_rahmanshah

Reputation: 1666

Play MediaElement sound without interrupting Zune music

I've added sound effects to some events in my Windows Phone app using MediaElement. When these sounds play, the background music playing from other apps, like Zune, gets paused. Is it possible to overcome this?

I read somewhere that it can be achieved using XNA; but since I'm developing on my Windows 8 machine, I can't use XNA.

Upvotes: 0

Views: 235

Answers (1)

Martin Suchan
Martin Suchan

Reputation: 10620

Even when developing on Windows 8 you can use XNA libraries in your Windows Phone apps. You should probably use SoundEffect and SoundEffectInstance for playing sound, the only problem is you need to have the sounds in wav form as a part of your project, not mp3 or files stored in MediaLibrary, as far as I know.
Difference between SoundEffect and SoundEffectInstance classes

Upvotes: 1

Related Questions