public void StartListening()
        {
            Debug.Log("RegisterAndroidCallbackListener");
            AddLog("StartListening");
            AndroidMusicHandler.RegisterAndroidCallbackListener((state) => {
                var stateText = "";

                switch (int.Parse(state))
                {
                case 1:  stateText = "AUDIOFOCUS_GAIN"; break;

                case -1:  stateText = "AUDIOFOCUS_LOSS"; break;

                case -2:  stateText = "AUDIOFOCUS_LOSS_TRANSIENT"; break;

                case -3:  stateText = "AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK"; break;

                default: stateText = state; break;
                }
                Debug.Log(stateText);
                AddLog(stateText);
            });
        }
 public void StopFMOD()
 {
     AddLog("Stop FMOD");
     AndroidMusicHandler.DisableFMOD();
 }
 public void StartFMOD()
 {
     AddLog("Start FMOD");
     AndroidMusicHandler.EnableFMOD();
 }
 public void StopListening()
 {
     Debug.Log("UnregisterAndroidCallbackListener");
     AddLog("StopListening");
     AndroidMusicHandler.UnregisterAndroidCallbackListener();
 }