Jump to content
The Dark Mod Forums

Stereo Zoned Ambients Need a Stereo silence.ogg Leadin Sound


Spooks

Recommended Posts

Oh man, I was just trying to figure this out the other day! Thanks Spooks!

 

I couldn't for the life of me figure out why my ambient tracks where playing at a lower sample rate. I thought it had something to do with transitioning from a mono to stereo ambient. I didn't even think to look at the silence file.

Link to comment
Share on other sites

I'll crosspost this from the internal thread for the public record.

 

I'm the one that originally decided to use the silence.ogg "leadin" to stop the popping problem.

(It was actually only a guess. I was never 100% sure it stops the problem or if it's confirmation bias. The pop-in will happen or not also depending on if the incoming ambient is very loud or not at the start, and possibly other issues that I don't even know about. But I at least had rational grounds to believe leadin works the way the problem works.)

 

But anyway, all of that is aside from the main point here.

It seems spooks really figured out stereo depends on having a stereo leadin.
In that case, it should be an easy yes to allow the switch IMO.

There was no rational reason I used mono in the first place except that it was fast to make & didn't occur to me it'd be a problem.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

By my guesses the pop in happens only when you enter a zone for the first time or when you travel between three zones fast. The latter case is fixable by setting your 2foip spawnargs to a longer fadein/out. The former I could only guess happens because even though the sound shaders are supposed to be "precached" they still load for the first time, making them skip fadeins. Perhaps making the sound shaders consist of two files makes the system load both, skipping the fade on the silence (which doesn't cause a pop, obviously) but it still works for the song proper. Again, all conjecture.

My FMs: The King of Diamonds (2016) | Visit my Mapbook thread sometimes! | Read my tutorial on Image-Based Lighting Workflows for TDM!

 

 

Link to comment
Share on other sites

Seems to me you'd be better off keeping the original and substituting the new one into the stereo ambients, but that'd likely be a lot more work.

Intel Sandy Bridge i7 2600K @ 3.4ghz stock clocks
8gb Kingston 1600mhz CL8 XMP RAM stock frequency
Sapphire Radeon HD7870 2GB FLeX GHz Edition @ stock @ 1920x1080

Link to comment
Share on other sites

Seems to me you'd be better off keeping the original and substituting the new one into the stereo ambients, but that'd likely be a lot more work.

As I understand it, all the ambient's are stereo files - so unless silence.ogg is used with any non-ambient's its shouldn't be an issue to direct replace the file.

Link to comment
Share on other sites

Seems to me you'd be better off keeping the original and substituting the new one into the stereo ambients, but that'd likely be a lot more work.

Assuming all the ambient's are stereo files, unless silence.ogg is used with any non-ambient's its shouldn't be an issue to direct replace the file.

Link to comment
Share on other sites

  • 5 months later...

By my guesses the pop in happens only when you enter a zone for the first time or when you travel between three zones fast. The latter case is fixable by setting your 2foip spawnargs to a longer fadein/out. The former I could only guess happens because even though the sound shaders are supposed to be "precached" they still load for the first time, making them skip fadeins. Perhaps making the sound shaders consist of two files makes the system load both, skipping the fade on the silence (which doesn't cause a pop, obviously) but it still works for the song proper. Again, all conjecture.

 

Since this issue came up again, cf. http://forums.thedarkmod.com/topic/18982-tdm-206/?p=414263, I'll just comment on this. The reason it happens (I thought at the time) is because, for a sound that is faded in, the way id4 set things up, the script function start_sound begins the sound at full volume, then you use a .01 second fadeout to silence, then you gradually fade it back up in volume.

 

The pop I thought was due to the fadeout coming online after start_sound already started a loud sound, so you get that blip of full volume before it fadesout. So a longer fadein would not address that issue.

 

The idea of the silent leadin was to allow the .01 second fadeout to do its work before the main sound comes online. As I said before, I don't know that that was ever actually the problem. E.g., there have been other issues with sound popping: http://bugs.thedarkmod.com/view.php?id=4148, which (the video in the first post of the attached thread) is what the original pop sounded like too AFAICR.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

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.
      · 4 replies
    • 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...