My game has a ton of WAV files for sounds and I need to add more. I use WAV because is recommended, but I know that I can have smaller sized sounds if I use mp3. My game is getting too big because of all these wav.
What are the issues I’ll have if I change a 300kb wav for a 30kb mp3 for sounds?
If you use 256kb/s mp3 or higher, you shouldn’t notice much change in terms of quality.
You can also use OGG which is the open-source equivalent of mp3.
I used to have WAVs for sounds and MP3s for music. A Safari update a few months ago resulted in WAVs not being played. I changed everything to MP3s and have had no issues since. So, at least in my experience, I’ve had no trouble using MP3s for everything.
Hmmmmmm. I’m wondering if that was recommended because a lot of people’s MP3 editors tend to add a delay before/after audio, as that type of “pause” is normal for music.
If you’re making your own audio, MP3 or OGG should be fine.
The main advantage of WAV files over anything that is encoded (ogg or mp3) is that it should have better performance. Any sound type that is encoded needs to be decoded first and then played resulting in more processing power needed. Since WAV files are not encoded they can be played as is…