Jump to content
The Dark Mod Forums

Some .wavs wrongly converted to .oggs


Springheel

Recommended Posts

Tels, you converted some .wav impact sounds to oggs in revision 12506. I don't know about the rest, but the stone impact sounds you changed were specifically supposed to be .wav files. Any impact sounds use the "shake" keyword in their sound shader need to be in WAV format.

 

Also, I notice that you changed a number of vocals from .wav to .ogg. That's fine, but did you also change the soundshader? I've been seeing a number of "can't find random_bark01.wav" warnings in the console recently and I wonder if that's why.

Link to comment
Share on other sites

Tels, you converted some .wav impact sounds to oggs in revision 12506. I don't know about the rest, but the stone impact sounds you changed were specifically supposed to be .wav files. Any impact sounds use the "shake" keyword in their sound shader need to be in WAV format.

 

Ah, ok, I can reverse them.

 

How can we make sure that this doesn't happen again? Maybe we can fix the engine so it can also shake with .oggs? Because we only have about 12 or so sounds in .wav, which means none of the others could be used as a "shake" sound shader.

 

Also, some of these stone sounds have a very long silent portion at the end - is this nec? (they are huge files for very little content)

 

Also, I notice that you changed a number of vocals from .wav to .ogg. That's fine, but did you also change the soundshader? I've been seeing a number of "can't find random_bark01.wav" warnings in the console recently and I wonder if that's why.

 

Ah, no, I was under the impression that the engine loads .ogg over .wav if it cannot find it (just as with .dds and .tga). If the engine does not do this, I think that should be added - it will be easier than to always fix sound shaders and make life easier for everyone.

 

I'll look into this tonight (approx. 12h from now) and fix it.

 

My apologies.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

I was under the impression that the engine loads .ogg over .wav if it cannot find it (just as with .dds and .tga).

 

I think it's pickier about sound files, but someone else might be able to correct me.

Link to comment
Share on other sites

I think it's pickier about sound files, but someone else might be able to correct me.

 

That is my impression too. The DDS files are intended to be simply a cache to speed up loading, with Doom 3 otherwise creating DDS dynamically from the TGA source files (which are assumed to be there, hence the various "black texture" problems in the DDS-only released mod if image settings aren't correct), whereas OGG and WAV are two different options for the source format, without any attempt by Doom 3 to convert from one to the other.

 

On the subject of converting to OGG, some of the updated footstep sounds I deliberately left in WAV format because they were created by modifying the existing OGG sound (since a lot of sounds don't have source WAVs available), and I didn't want to introduce re-compression artifacts.

Link to comment
Share on other sites

The reason is that shakes manipulates the channels directly, as such an ogg would need to be decoded and then held in memory waiting for use, using the wav skips the decoding process which decreases spikes in cpu use (back in the day, tho it's still quite intensive).

Link to comment
Share on other sites

One note about footsteps...I noticed that a number of Gold's footsteps were in stereo format. I wonder if that contributed to them not sounding right.

Link to comment
Share on other sites

That is my impression too. The DDS files are intended to be simply a cache to speed up loading, with Doom 3 otherwise creating DDS dynamically from the TGA source files (which are assumed to be there, hence the various "black texture" problems in the DDS-only released mod if image settings aren't correct), whereas OGG and WAV are two different options for the source format, without any attempt by Doom 3 to convert from one to the other.

 

I don't see why D3 can't fallback on loading the .wav if it can't find the .ogg, tho. Since the engine loads and plays both formats, anyway, that should work.

 

On the subject of converting to OGG, some of the updated footstep sounds I deliberately left in WAV format because they were created by modifying the existing OGG sound (since a lot of sounds don't have source WAVs available), and I didn't want to introduce re-compression artifacts.

 

I don't think anyone could determine the difference when listening to them on PC speakers in a clean environment, and even less in-game, tho :)

 

Anyway, I have fixed the sound shaders using a script to detect missing files. The stone sounds will be restored to WAV in a minute. (Edit: Huh, it seems someone already did. I am getting SVN artefacts restoring them)

 

One thing I see is that we are still using lots of D3 sounds for spider footsteps etc. Guess we have some work todo in this department :) (But Springheels massive change is very very welcome! :wub:)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

I don't see why D3 can't fallback on loading the .wav if it can't find the .ogg, tho. Since the engine loads and plays both formats, anyway, that should work.

 

Well it could, of course, but the intention is that you supply either a WAV or an OGG, but not both (unlike with the DDS files which mirror the existing TGA tree). So I don't think this behaviour would be useful even if implemented.

 

I don't think anyone could determine the difference when listening to them on PC speakers in a clean environment, and even less in-game, tho :)

 

True, but besides "feeling icky" about serial compression, there is also the possibility that if converted to OGG the sounds might in the future be un-compressed, edited and re-compressed yet again by somebody else who hasn't seen this discussion or checked the SVN history.

 

In any case, I'm not insisting that they be left as WAV, just providing the rationale for why I didn't compress them in the first place.

Link to comment
Share on other sites

Well it could, of course, but the intention is that you supply either a WAV or an OGG, but not both (unlike with the DDS files which mirror the existing TGA tree). So I don't think this behaviour would be useful even if implemented.

 

Er, I think it would be a bit more useful than the current "I cannot find foo.wav" (while foo.ogg exists and is unused). That would certainly make things less error-prone, which would help humans (no longer do you need edit shaders just because you convert from one format to the other!)

 

Of course, I am not going to code it in if the first and only response is "I don't think it will be useful" -I have way too many things on my list :)

 

True, but besides "feeling icky" about serial compression, there is also the possibility that if converted to OGG the sounds might in the future be un-compressed, edited and re-compressed yet again by somebody else who hasn't seen this discussion or checked the SVN history.

 

In any case, I'm not insisting that they be left as WAV, just providing the rationale for why I didn't compress them in the first place.

 

Yeah, I got this impression from your post, my response was more the rationale why thy can stay in .ogg (and 0.4 mb vs. 3.400 mb of sounds or so was for me reason enough to convert the handful of sounds I did convert :)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Shakes just takes a random float * the shake volume. Do that 3x and it becomes an angle. Use that angle to jiggle idPlayerView. Do that every frame.

 

I took a look at the WAV vs OGGs "shakes" issue in the engine code. There's a hint in idGameLocal::DumpOggSounds

// don't OGG sounds that cause a shake because that would
// cause continuous seeking on the OGG file which is expensive

Although I don't know why volume queries are expensive for shakes but not for, say, flickering lights. :huh: It could be expensive for idEarthQuake::think because it has to also query the player's position and modify the amplitude of the shakes.

yay seuss crease touss dome in ouss nose tair

Link to comment
Share on other sites

Shakes just takes a random float * the shake volume. Do that 3x and it becomes an angle. Use that angle to jiggle idPlayerView. Do that every frame.

 

I took a look at the WAV vs OGGs "shakes" issue in the engine code. There's a hint in idGameLocal::DumpOggSounds

// don't OGG sounds that cause a shake because that would
// cause continuous seeking on the OGG file which is expensive

Although I don't know why volume queries are expensive for shakes but not for, say, flickering lights. :huh: It could be expensive for idEarthQuake::think because it has to also query the player's position and modify the amplitude of the shakes.

 

Maybe we should just try it with a big sound file?

 

I haven't used "idEarthQuake", but why would the player position play a role? Also, wouldn't the ogg just play in one go, and so the volume also gets extracte in one go (e.g. the playing never seeks backwards?)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

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.
      · 6 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...