r1037 (+ GZD r123) Loud buzzing noise
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
r1037 (+ GZD r123) Loud buzzing noise
There is a loud buzzing noise on some maps. I didn't notice it with the versions released before today (I forget which number I had actually compiled) and it did not happen with GZdoom r122 either.
It seems to only happen with add on maps so maybe it's something to do with ambient sounds or something.
Here's a video of my own Overlord WAD in r1037 to illustrate the point. Don't worry about the sky using the notexture thingy, it's supposed to be a GZdoom skybox.
http://www.rowand.myzen.co.uk/noisy.wmv
It seems to only happen with add on maps so maybe it's something to do with ambient sounds or something.
Here's a video of my own Overlord WAD in r1037 to illustrate the point. Don't worry about the sky using the notexture thingy, it's supposed to be a GZdoom skybox.
http://www.rowand.myzen.co.uk/noisy.wmv
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: r1037 (+ GZD r123) Loud buzzing noise
The problem is caused by the ambient sound things. I'm too tired to investigate further though.
Another thing I noticed while testing this: FSoundChan::Mover neither contains a read barrier nor is it processed in any way by the garbage collector. I got a crash with Operation Overlord with this when I was quitting.
Another thing I noticed while testing this: FSoundChan::Mover neither contains a read barrier nor is it processed in any way by the garbage collector. I got a crash with Operation Overlord with this when I was quitting.
Re: r1037 (+ GZD r123) Loud buzzing noise
It shouldn't be needing any special garbage handling if everything is working right, though, since one of the things the actor's Destroy() is supposed to do is detach all the sounds from it.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: r1037 (+ GZD r123) Loud buzzing noise
It still crashed because it pointed to something invalid.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: r1037 (+ GZD r123) Loud buzzing noise
I was able to fix the immediate cause but I don't know what caused it to make this odd buzzing noise instead. It sounds as if the sound was restarted over and over again so I suspect some hidden problem in the sound code that accidentally got triggered by the error in the ambient sound thing.
Maybe Randy can say more so I'm leaving this report open. My change was as follows:
Line 1884 in s_advsound.cpp:
The first parameter was NULL in the previous non-working revision.
Maybe Randy can say more so I'm leaving this report open. My change was as follows:
Line 1884 in s_advsound.cpp:
Code: Select all
S_StartSound (&this->x, this, NULL, CHAN_BODY|CHAN_LOOP, ambient->sound,
ambient->volume, ambient->attenuation);
Re: r1037 (+ GZD r123) Loud buzzing noise
This does highlight one major failing of looping sound playback: The caller is responsible for checking that a looping sound is still playing and restarting it if it stops. This should be handled transparently by the sound code.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: r1037 (+ GZD r123) Loud buzzing noise
Ok, good to know. But since a design flaw isn't a bug... 

Re: r1037 (+ GZD r123) Loud buzzing noise
...a design flaw which has now been rectified.
Also, this:
Also, this:
Was because the ambient sound called S_StartSound() without a valid point, and because S_RelinkSound() looked at points instead of actors. So it was two errors, working in tandem that caused it to crash. You fixed the one, so that stopped the crash and also properly flagged the actor as making a sound, which stopped it from trying to restart the sound every tic.Graf Zahl wrote:It still crashed because it pointed to something invalid.
Re: r1037 (+ GZD r123) Loud buzzing noise
Thank you. That's a mainly cosmetic, but very, very welcome improvement.Changelog wrote:Any sounds that were playing when you saved will still be playing when you load.

- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: r1037 (+ GZD r123) Loud buzzing noise
Actually not. Imagine a sound containing an important message but interrupted by saving and quitting. You'd have had no chance to hear the rest.Enjay wrote:Thank you. That's a mainly cosmetic,Changelog wrote:Any sounds that were playing when you saved will still be playing when you load.
Re: r1037 (+ GZD r123) Loud buzzing noise
Hence the "mainly". 

Re: r1037 (+ GZD r123) Loud buzzing noise
IMO, a sound that contains important information, that isn't also displayed as text or something, would be a bad design choice on the modder's part.
But otherwise yes, I agree and am pleased the annoying noise is gone.
But otherwise yes, I agree and am pleased the annoying noise is gone.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: r1037 (+ GZD r123) Loud buzzing noise
People still do it.Slasher wrote:IMO, a sound that contains important information, that isn't also displayed as text or something, would be a bad design choice on the modder's part.
Re: r1037 (+ GZD r123) Loud buzzing noise
On the other hand, it could partially be called the player's fault as well. I mean come on, who saves and quits right in the middle of an important message? 

Re: r1037 (+ GZD r123) Loud buzzing noise
Welcome to Strife. It does have a log feature, but it isn't always used.Slasher wrote:IMO, a sound that contains important information, that isn't also displayed as text or something, would be a bad design choice on the modder's part.