Jump to content
The Dark Mod Forums

Wav Vs Ogg


Domarius

Recommended Posts

  • 1 month later...

Bump!

 

I'd like to discuss this, because we need to be clear about it, if we want to make a technical guideline for file formats. If we're going to keep wavs for small files, we should at least be clear about the approximate filesize of sounds that use wav instead of ogg.

 

Ok, so in my opinion, we should stick with ogg. My reasoning is that both formats are streamed by the engine before they are processed (EAX), and the performance gain doesn't warrant the increasing mod size - I'm not an expert on OpenAL, but I can't really see it. Gildoran, if I'm terribly wrong, please correct me.

Link to comment
Share on other sites

For footsteps, and minor impact sounds, it's definitely better to use wavs. When I converted the T2X footsteps to ogg, they were more glitchy for some reason and didn't always play as quickly as they should.

 

I think the general rule of thumb should be, oggs for ambient music and vocal sets...since they're usually longer. Wavs for SFX....as they are usually short snippets.

Link to comment
Share on other sites

Hmm, so the problem is the access time. If oggs lag, that's a valid reason to use wav files for time critical, short sounds.

 

Question: If I convert any given wav to an ogg, and don't rename it save the file expansion, would I have to change anything in the editor? If not, the problem wouldn't be that big, since we could easily swap filetypes for any sound.

Link to comment
Share on other sites

For footsteps, and minor impact sounds, it's definitely better to use wavs. When I converted the T2X footsteps to ogg, they were more glitchy for some reason and didn't always play as quickly as they should.

Are you sure they were precached properly? It should precache it if you use "snd_*" for the name in the key-value pair, but if you had some arbitrary name it might not have precached them and had to load them the first time.

Link to comment
Share on other sites

Are precached OGGs decoded to raw waveform data when they're loaded, or only when they're played? If the latter, that could account for a small delay while it does the OGG -> WAV conversion.

 

What I mean is, which set of data is cached? Just the contents of the OGG file, or the decoded waveform data? The former would be a pretty silly way to do it, but maybe that's just how it ended up being implemented.

My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
Link to comment
Share on other sites

OGGs supposedly cannot be used to control screen shaking.

 

Not true, I use an ogg in my mansion map (when the huge stone block moves back into the ceiling) and it shakes the camera just fine. I had to set it to shake though.

Link to comment
Share on other sites

comp-music, I'm not sure if I understood that correctly - are you thinking of the total size of all sounds?

 

Anyways, I did some testing in test_footsteps and couldn't tell any difference between ogg and wav. I've converted all footsteps to ogg, changed the shader and I couldn't find any impact on performance, total loading time or access speed. I stress tested with mashing the forward button, which currently causes our Thief to perform a splendid tap-dance. :D

 

NH, maybe it's because of the encoder you used, or the effect only becomes appearant in a detail heavy environment?

Link to comment
Share on other sites

Yes.When we finish all of the sound of the game will be seen clear.

 

Of course we can only guess the total size of all sounds while they are still in production. It's however one of our goals to minimize the total size of the mod, and oggs help with that a lot. Consider that even before a public release, the files will be moved a lot - and a small size decreases the traffic and shortens download times.

 

I'm not sure, what is your point? Are you opposed to using ogg files? Your opinion is certainly welcome! :)

Link to comment
Share on other sites

I noticed while playing the Bonehoard map that the footsteps seem to be reverbed. It sounded pretty bad in the outdoors section. I talked with Schatten about this and maybe it's got something to do with faulty EAX setup. I'm gonna do a few tests over the next few days.

Faulty EAX setup? It seemed like some of those T2X footsteps just have too much reverb in the sound files themselves. A few of us complained some months ago but apparently the T2X guys don't have the original un-processed ones.

 

@Schatten:

The "snd" value should be in the first of the key/value pair, so you'll see "snd_X" (the local name) and then the second part in separate quotes will be the soundshader name, but the first name needs to be "snd_*" for it to be precached.

Link to comment
Share on other sites

Faulty EAX setup? It seemed like some of those T2X footsteps just have too much reverb in the sound files themselves. A few of us complained some months ago but apparently the T2X guys don't have the original un-processed ones.

Yes that is the most probably explanation of course, just forgot to mention it apparently. I'll check it out later today.

Link to comment
Share on other sites

Yes. That's why we would perfer to use ogg all the way, unless there are some reasons why WAV should be used, or maybe only in some cases. If there are no disadvantages, like performance issues because of decoding oggs, or some such, then I would say we should use consequently ogg format.

 

As a release date: When it's done. :)

Gerhard

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 1 reply
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...