• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[1.32.10] OGG sounds don't work

Status
Not open for further replies.
Level 10
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: 42
Last edited:
Level 19
Joined
Jan 3, 2022
Messages
320
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