This is the code in Unity, but it can’t be called when alarm clock actived and unactived.
When alarm clock is active, the game goes silent.
When alarm clock is closed with the game is not in background, the game keep silent.
I’m looking for any API can be called in Unity when alarm clock actived or unactived, and the result is OnApplicationPause and OnApplicationFocus have some relation with the problem, but there can’t be called when alarm clock actived or unactived.
I hava seen the suggestions in https://www.fmod.com/resources/documentation-api?page=content/generated/platform_ios/basics.html#/, but it is the suggesstions for ios develop, not for unity.
This is the Code in Unity!!!
RuntimeManager.cs
void OnApplicationPause(bool pauseStatus)
{
if (studioSystem.isValid())
{
// Strings bank is always loaded
if (loadedBanks.Count > 1)
PauseAllEvents(pauseStatus);
This is the code in Unity, but it can’t be called when alarm clock actived and unactived.
When alarm clock is active, the game goes silent.
When alarm clock is closed with the game is not in background, the game keep silent.
I’m looking for any API can be called in Unity when alarm clock actived or unactived, and the result is OnApplicationPause and OnApplicationFocus have some relation with the problem, but there can’t be called when alarm clock actived or unactived.
I hava seen the suggestions in https://www.fmod.com/resources/documentation-api?page=content/generated/platform_ios/basics.html#/, but it is the suggesstions for ios develop, not for unity.
This is the Code in Unity!!!
RuntimeManager.cs
void OnApplicationPause(bool pauseStatus)
{
if (studioSystem.isValid())
{
// Strings bank is always loaded
if (loadedBanks.Count > 1)
PauseAllEvents(pauseStatus);
if (pauseStatus)
{
lowlevelSystem.mixerSuspend();
}
else
{
lowlevelSystem.mixerResume();
}
}
}
This is the code in Unity, but it can’t be called when alarm clock actived and unactived.
When alarm clock is active, the game goes silent.
When alarm clock is closed with the game is not in background, the game keep silent.
I’m looking for any API can be called in Unity when alarm clock actived or unactived, and the result is OnApplicationPause and OnApplicationFocus have some relation with the problem, but there can’t be called when alarm clock actived or unactived.
I hava seen the suggestions in https://www.fmod.com/resources/documentation-api?page=content/generated/platform_ios/basics.html#/, but it is the suggesstions for ios develop, not for unity.
This is the Code in Unity!!!
RuntimeManager.cs
void OnApplicationPause(bool pauseStatus)
{
if (studioSystem.isValid())
{
// Strings bank is always loaded
if (loadedBanks.Count > 1)
PauseAllEvents(pauseStatus);
As we tested, the interruptions don’t trigger OnApplicationPause or OnApplicationFocus.
I add your fix to my project, it does’t work, the OnApplicationPause and OnApplicationFocus callback can’t be triggered.
Unity 2017.2.0p4
FMOD Studio Unity Integration: 1.10.02
Device: iPad mini2, iPhone 8 plus, iPhone 6 Plus …
iOS:11.2,9.4,10.x
Most ios device have the problem.