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

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 3 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...