I’m developing my app with monotouch in C#. Is there anyway I could use FMOD? I downloaded Android version from your website but it’s only for Java.
P.S. I used FMOD before with a Windows application, so naturally it was my first choice for an Android application too.
- van2 asked 5 years ago
I’m not familiar with the functionality available with Mono for Android. What I can say is our libraries are dynamic and compiled as C++ code so if the functionality exists like on Windows it seems possible. You would need to fetch our C# API from the Windows installer and make the necessary modifications for use on Android (I’d assume this would involve a different library for p/invoke).
We have an iOS + Android Xamarin app that uses FMOD on both platforms using the C# wrapper from the Windows installation. I’d be happy to zip up the Android project for you if you’re interested.
- kirkus answered 4 years ago
- Hi Kirkus, I just tried calling FMOD_System_Init using P/Invoke in Xamarin.Android. Calling it directly results in an error, Xamarin states that JNI_OnLoad hasn't been called. Then when I use JavaSystem.LoadLibrary it fails with 'can't find class org.fmod.AudioDevice'. How did you get this to work? Are you still interested in sharing your code? Thanks, Will
- You must login to post comments
Would it be possible to provide a small working sample of loading and playing an ogg sound using C# wrapper? The latest version of armeabi-v7a .so libraries from the Java package seem to be compatible with the C# wrapper on Galaxy 2 with Xamarin, however I’m not able to hear any sound playing. Something is probably wrong either with how I initialize the audio system or load the files (I have a ogg files under the standard \Resources\Raw folder).
- van2 answered 4 years ago
I just started looking at exactly this (except for Duality instead of Monogame, but this side of things should be the same) and sample code would save a lot of time, if anyone wants to share the parts that relate to using and calling the lib that would be awesome, otherwise I ll share it here when I get it working 😀
Please login first to submit.