Mnemonic, please explain :)If your game references for example "filename.wav", the engine first looks if "filename.ogg" exists, and if it does, it's used instead. So, you have to use an extension, but if you always use .wav, you can replace the files later with Ogg compressed ones and you don't need to modify your code.
Mnemonic, please explain :)If your game references for example "filename.wav", the engine first looks if "filename.ogg" exists, and if it does, it's used instead. So, you have to use an extension, but if you always use .wav, you can replace the files later with Ogg compressed ones and you don't need to modify your code.
In other words, you are right the file type parameter is not necessary.
Ever wanted to have random background sound effects in your game? Here's something to get you started.