Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

If you are using Chrome, you will need to add a tiny bit of js to make audio work. Chrome killed auto-play audio sources a few months ago, so now you have to have some sort of user interaction to make it "autoplay".

Best practice for the audio tag is something like this:

   <audio id="soundtrack" loop>
       <source src="yourfile.mp3" type="audio/mpeg">
   </audio>

Then you would you would hook into that audio tag id when the user first interacts with the game:

   <script>
       function ostPlay() {
           document.getElementById("soundtrack").play();
           document.removeEventListener('click', ostPlay);
           document.removeEventListener('touch', ostPlay);
       }
       document.addEventListener("click", ostPlay);
       document.addEventListener("touch", ostPlay);
   </script>

It's a little annoying, but until Chrome comes up with a better solution or reverses this change there's not really another option.

I hope this helps!