Search Unity

Audio only plays on first launch

Discussion in 'Audio & Video' started by Jana1108, Jul 7, 2015.

  1. Jana1108

    Jana1108

    Joined:
    Jun 27, 2015
    Posts:
    215
    Hi, in my game I wanted some audio to play. It works fine in unity but it only works when I download it to my phone on the first launch of the game. When I go back into the game after I've launched it once already the audio won't play?
     
  2. aihodge

    aihodge

    Joined:
    Nov 23, 2014
    Posts:
    163
    Can you share your code that handles the loading and playback of the audio?
     
  3. jerotas

    jerotas

    Joined:
    Sep 4, 2011
    Posts:
    5,572
    Maybe there is no code. Maybe it's "play on awake" and the Scene needs to be loaded again to play the sound again?
     
  4. Jana1108

    Jana1108

    Joined:
    Jun 27, 2015
    Posts:
    215
    It's working now thanks, turns out it was fine but I had two apks installed on my phone so it wouldn't play the right one.