Search Unity

Audio breaks after exiting game once, build & run fixes it

Discussion in 'Android' started by ericsteimle, Mar 12, 2020.

  1. ericsteimle

    ericsteimle

    Joined:
    Dec 26, 2017
    Posts:
    3
    I have a simple game using an audio source for a thruster in Android 9 with Unity 2019.3.0b3. If I build and run the audio works fine. But if I quit the game using Application.Quit, or kill it with the task manager then the next time I run the game there will be no sound. I have also killed it from the task manager in Android but it doesn't make a difference. If I do a build and run again though, the first time the audio works great again. But if I kill or quit, no more audio until I build and run.

    What am I missing here? Is there a graceful way I have to shutdown audio or something? I suppose maybe audio just doesn't work if I launch it from the device too.

    Thanks!