Moved WAV and MP3 load to a single function.