No Audio when APK is built in release mode (FMOD | Android)

I’ve Tried this several times and I can’t seem to find out what the answer is.

I’ve done all the steps to get it to build with android and it works great when in debug mode, But as soon as I try to make a release APK, FMOD doesn’t play any sounds. What’s ever more crazy is that it’s not like its the release libraries that don’t work because when I use the release libraries with a debug build, it works fine!

Can anyone help me with this issue? Also what sucks is that I can’t get a good stacktrace since it’s in release mode and I use progaurd. My proguard config contains:

-keep class org.fmod.** { ; }
-dontwarn org.fmod.
*

Without the Don’t warn, I get this error:

Warning: org.fmod.MediaCodec$2DataSource: can’t find superclass or interface android.media.MediaDataSource
Warning: org.fmod.MediaCodec: can’t find referenced method ‘void setDataSource(android.media.MediaDataSource)’ in library class android.media.MediaExtractor
Warning: org.fmod.MediaCodec$2DataSource: can’t find referenced class android.media.MediaDataSource
Warning: org.fmod.MediaCodec$2DataSource: can’t find referenced class android.media.MediaDataSource

I solved my issue. What I was doing before was checking the results of an FMOD_RESULT like this

define CHECK_RESULT(result) assert(result == FMOD_OK)

Which works fine in debug mode but not in release mode. I changed it to this:

inline void CHECK_RESULT(FMOD_RESULT result) {
   assert(result == FMOD_OK);
}

And it was working fine. I’m guessing the MACRO was getting lost or something. Hope this helps someone!