Search Unity

Audio Some audio not working when building to Windows

Discussion in 'Audio & Video' started by Razorlance, Jul 11, 2018.

  1. Razorlance

    Razorlance

    Joined:
    Aug 25, 2014
    Posts:
    15
    My game has several audio effects and 1 music track, these are connected to separate audio mixers which are in turn children of a master mixer. This lets me adjust the volume of effects and/or music and overall master volume via 3 UI sliders.

    This all works perfectly when in the editor however when i build it to the windows platform the music track and one of the audio effects don't play. The sliders still seem to work for the audio effects that do play, i.e. the master volume and effects volume.

    It seems like the audio files are somehow not being included in the build but I cannot see any assets in the data folder so have no idea how or where they are stored.

    I'm using Unity 2018.1 and Window 10, can anyone help?
     
  2. Razorlance

    Razorlance

    Joined:
    Aug 25, 2014
    Posts:
    15
    Well, I created a WebGL version of the game which worked perfectly, then went back and tried the Windows version again and, guess what... that worked perfectly too! I have no idea what went wrong but I'm glad it fixed itself!