Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Background sound?

Discussion in 'Audio & Video' started by hellpirat, Aug 21, 2015.

  1. hellpirat

    hellpirat

    Joined:
    Jun 12, 2015
    Posts:
    26
    Hello.
    I have a soundtrack with 5 sec length. I want to make it sound background but when I put toggle Loop each time at the end of the track, I hear a wheeze.
     
  2. williamcriley

    williamcriley

    Joined:
    Aug 22, 2015
    Posts:
    1
    What audio format is the background sound? I read somewhere that mp3's contain a slight delay which triggers a sound (Maybe its the metadata? track info or something?)

    I'm using a .wmv file for a background audio that loops just fine for me.

    What i did was create a new GameObject > Audio > AudioSource. Set the .wav as the source then dragged the AudioSource into my Heirarchy.

    I set the object in my inspector to "Play on Awake" and "Loop" and it seems to work fine for me!
     
    hellpirat likes this.
  3. hellpirat

    hellpirat

    Joined:
    Jun 12, 2015
    Posts:
    26
    I did like you. The problem was in the file. This sound was in the file, then cut the sound from the end of the track, now everything well : )