Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

CRASH: Unity iOS can't suspend AudioEngine in Background

0 votes

I'm trying to suspend the audioengine when the app goes into background on iOS.

I'm using the OnApllicationPause Callback in Unity like so:

    void OnApplicationPause(bool paused)
    {
        if (paused)
        {
            AkSoundEngine.Suspend();
            Debug.Log("ApplicationPaused" + paused);

        } else {
            AkSoundEngine.WakeupFromSuspend();
            Debug.Log("ApplicationBack" + paused);
        }
    }

I'm getting the following Error:

AK Error: Sound engine is not initialized or dummy sink is in use. Aborted.

 

asked Oct 7, 2014 in General Discussion by Milan G. (190 points)

Please sign-in or register to answer this question.

...