Answered
0
0

Hi,

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.

  • You must to post comments
Best Answer
0
0

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).

  • You must to post comments
0
0

Kirkus – was it difficult to adapt the C# wrapper from the Windows installation to allow you to use FMOD on iOS from Xamarin? I would love to do this, and any advice/code you could give me would be much appreciated!

  • You must to post comments
0
0

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.

  • William Lee Mapp, III
    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 to post comments
0
0

There are C# examples in API installer, take a look in C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Win32\examples_csharp

The FMOD_RESULT return values from the API indicate if you’ve done something wrong.

  • You must to post comments
0
0

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).

  • You must to post comments
0
0

Hi Kirkus,

We’re using Xamarin and Monogame to build our product and could use a sample Java project if you have it working.

Are you still interested in sharing it?

Thanks,
Will

  • You must to post comments
0
0

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 😀

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.