• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[1.32.10] OGG sounds don't work

Status
Not open for further replies.
Level 11
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.

  • 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

  • OGG Sound Test.w3x
    50.2 KB · Views: 48
Last edited:
Level 20
Joined
Jan 3, 2022
Messages
364
I can 100% confirm these findings.
1.30 (Chinese exe):
Code:
...3rdparty\fmod\fmod4\src\fmod_codec_oggvorbis.cpp
FMOD Ogg Vorbis Codec
Warcraft 3 version 1.31.1.12173 PTR: Nope. Instead has FLAC

They removed ogg/Vorbis and replaced it with FLAC. The game now actually looks up mp3/wav/flac for each file you load (I don't remember the exact order, but wav was checked twice like (mp3,wav) and (flac,wav)). Maybe they wanted to make Reforged sounds in high quality Vorbis but then decided on lossless FLAC instead - that's honestly awesome! Though Opus is the best lossy codec.
 
Level 1
Joined
Mar 14, 2023
Messages
8
Hi, my version is 1.24e and I can't loop music in mp3, wav or ogg format after modifying it, why is that?
 
Status
Not open for further replies.
Top