I am a big fan of having a lot of music in my games. Is there a way to add music that's hosted from another site so I don't go over the 20mb data limit?
SOLUTION: What I ended up doing was the following:
First, print a message containing:
<audio autoplay loop> <source src="https://dl.dropboxusercontent.com/s/[SHARE-LINK-ID]" type="audio/mpeg"/>
This would allow looping audio hosted from Dropbox to play in the background.
Then when you want the audio to stop or be replaced, do a javascript function containing this:
eval ("$.each($('audio'), function () { this.pause(); });")
You could always try condensing the music. :)
https://www.onlineconverter.com/compress-mp3
^ pretty reliable. I've never had problems with it.
Anonynn.
That doesn't answer the question. I already know I'm going to use a LOT of music. Condensing it won't be enough.