I'm trying to play multiple sounds simultaneously on a Windows Phone 8.1 Runtime app using SharpDX but it has quite a few drawbacks (instability, difficult to maintain and an annoying background noise whenever the XAudio engine is running). I really want to use the SoundEffect class in the XNA framework but it's only available in Silverlight.
My question is, can I add a Silverlight class library to my solution, create a custom class which wraps around the XNA framework libraries and then use this custom class in my main Runtime project to play the sounds? Or is there any other way to make this work?
You cannot reference a XNA class in a Windows Phone 8.1 XAML project and there is no way to write a wrapper (because that would mean referencing it in a Windows Phone 8.1 XAML project). You just have to find a solution that does not use XNA.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With