MovingBlocks/Terasology — Issue #102: Improve audio loading / handling
Author: Cervator
Created: 2012-02-08 02:57:33+00:00
State: open
Labels: Architecture, Contributor-friendly

While the "fix" in #60 gets rid of the audio lag each time a GelCube spawns when running in the applet it doesn't quite straighten out the audio as much as we could - in particular because the audio still loads after the game has started, causing a few seconds of lag, but only once.

It used to be that each MovableEntity would load all the footsteps audio from disk on startup (causing the lag), now instead the audio is loaded from the AudioManager "cache" - but could it just play the audio out of there rather than make copies for every MovableEntity?

Also, I tried to put the footstep audio files into the loadAudio but for some reason the loading lag didn't disappear - maybe because it doesn't get cached prior to the game starting (prior to "fast forwarding world" finishing, anyway). Might go well with a splash / loading screen

Just sorting out how the MovableEntities load their sounds is probably not too bad, so marking this one friendly