ellic
ellic

Reputation: 798

How to play two background audio tracks simultaneously

I'm using the 'BackgroundAudioPlayer' class to play background audio in windows phone 7.1, now I'm wondering whether I can play two background audio tracks simultaneously or not.

any thoughts?

ps.If there is no need to play in background, how can I play two audio tracks simultaneously?

Thx.

Upvotes: 1

Views: 409

Answers (1)

Matt Lacey
Matt Lacey

Reputation: 65564

The BackgroundAudioPlayer doesn't support this unless you were to use an AudioStreamingSource and combine them yourself.

Doing this in the foreground could be achieved with multiple MediaElement's.

It's very unusual to play multiple sounds at once. Especially if you need them in sync or there's a possibility they may sound bad when played together.
If you're really just need to play sound effects, you should be using the SoundEffect class.

Upvotes: 2

Related Questions