Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a SIlverlight wrapper class for Runtime apps

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?

like image 806
Ali250 Avatar asked Feb 28 '26 04:02

Ali250


1 Answers

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.

like image 101
Igor Kulman Avatar answered Mar 01 '26 18:03

Igor Kulman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!