- Joined
- Dec 11, 2009
- Messages
- 234
WC3 1.30.4 supported OGG sounds, but since then it was dropped, unfortunately.
This is important for anyone who deals with sound.
Audio files details from attached testmap (but it doesn't really matter):
-- 1.30.4: [Demonstation]
All sounds are played.
-- 1.31:
Only sound[0], sound[1] are played.
-- 1.32.10:
Only sound[0], sound[1], sound[2] are played. However, sound[2] has the same file name (except extension) as sound[0], so the game actually played sound[0] instead.
This is important for anyone who deals with sound.
- MP3: Only useful for music or singular sounds. Playing mp3 sound in a loop, especially short one, is an AWFUL idea, because mp3-audio has short silence at the edges (no matter how and with what settings do you encode it).
- WAV: No problems with looping sounds. But it's still bad, because of huge file size.
- OGG: No problems with looping sounds. Small filesize. Perfect audio format for gamedev. We really need this.
Audio files details from attached testmap (but it doesn't really matter):
JASS:
bitrate filesize sampling frequency
sound[0] = "Test.mp3" 68 Kbps 1.96 KB 44.1 KHz
sound[1] = "Test1.mp3" 140 Kbps 3.57 KB 44.1 KHz
sound[2] = "Test.ogg" 330 Kbps 5.88 KB 44.1 KHz
sound[3] = "Test0.ogg" 259 Kbps 4.61 KB 44.1 KHz
sound[4] = "Test10.ogg" 534 Kbps 9.52 KB 44.1 KHz
sound[5] = "TestShitty.ogg" 203 Kbps 5.17 KB 44.1 KHz
-- 1.30.4: [Demonstation]
All sounds are played.
-- 1.31:
Only sound[0], sound[1] are played.
-- 1.32.10:
Only sound[0], sound[1], sound[2] are played. However, sound[2] has the same file name (except extension) as sound[0], so the game actually played sound[0] instead.
Attachments
Last edited: