Skip to content
This repository was archived by the owner on Aug 23, 2026. It is now read-only.
This repository was archived by the owner on Aug 23, 2026. It is now read-only.

Getting Exceptions in Demo #1

Description

@joonjoonjoon

Hey, I'm testing this in Unity 5. It's nice to hear I'm not crazy and that isMusicPlaying always returns true.

I get these exceptions in the demo:
When I press "Is Music Playing?"

06-11 19:43:24.141: I/Unity(22635): AndroidJavaException: java.lang.ClassCastException: java.lang.Boolean cannot be cast to org.fmod.FMODAudioDevice
06-11 19:43:24.141: I/Unity(22635):   at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <filename unknown>:0 
06-11 19:43:24.141: I/Unity(22635):   at UnityEngine.AndroidJNISafe.CallStaticBooleanMethod (IntPtr clazz, IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in <filename unknown>:0 
06-11 19:43:24.141: I/Unity(22635):   at UnityEngine.AndroidJavaObject._CallStatic[Boolean] (System.String methodName, System.Object[] args) [0x00000] in <filename unknown>:0 
06-11 19:43:24.141: I/Unity(22635):   at UnityEngine.AndroidJavaObject.CallStatic[Boolean] (System.String methodName, System.Object[] args) [0x00000] in <filename unknown>:0 
06-11 19:43:24.141: I/Unity(22635):   at OnAudioFocusChangedListener.Android.AndroidMusicHandler.IsAndroidMusicPlaying () [0x00000] in <filename unknown>:0 
06-11 19:43:24.141: I/Unity(22635):   at OnAudioFocusChangedListener.Android.AndroidMusicHandler.get_IsMusicActive () [0x00000] in <filename unknown>:0 
06-11 19:43:24.141: I/Unity(22635):   at OnAudioFocusChangedListener.Android.Test.IsMusicOn () [0x00000] in <filename unknown>:0 
06-11 19:43:24.141: I/Unity(22635):   at UnityEngine.Events.InvokableCall.Invoke (System.Object[] ar

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions