Problem with sound for moving floor/ceiling

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Kappes Buur
Persecution Complex
Posts: 176
Joined: Tue Apr 05, 2011 4:30
Location: British Columbia

Problem with sound for moving floor/ceiling

Post by Kappes Buur »

I had posted about this on the ZDoom forum. However, nobody seemed to have an answers for this.

Image

Here is the problem:

When this script is executed:

[spoiler]

Code: Select all

#include "zcommon.acs"

script 1 open

{
    Floor_LowerByValue   (1, 2, 84);
    Ceiling_LowerByValue (1, 2, 32);
    
    Floor_LowerByValue   (2, 2, 68);
    Ceiling_LowerByValue (2, 2, 16);
    
    Floor_LowerByValue   (3, 2, 52);
        
    Floor_LowerByValue   (4, 2, 36);
    Ceiling_RaiseByValue (4, 2, 16);
 }
[/spoiler]

the sound of the floor and ceiling moving is played only for sector 1.
Subsequent sectors, 2, 3 and 4 move without the sound, which spoils the effect.

I would appreciate any help in solving this.

And the map
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Problem with sound for moving floor/ceiling

Post by Graf Zahl »

Have you set the sound limit to something higher than 2? This sounds like the remaining sector sounds get stopped by that as both slots are taken by sector 1.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: Problem with sound for moving floor/ceiling

Post by Enjay »

Well, I don't know why this happens (something to do with $limit values in sndinfo?) but I can load the map up in a Zdoom version as old as 1.23 b33 and still get the problem. :?
User avatar
Kappes Buur
Persecution Complex
Posts: 176
Joined: Tue Apr 05, 2011 4:30
Location: British Columbia

Re: Problem with sound for moving floor/ceiling

Post by Kappes Buur »

Graf Zahl wrote:Have you set the sound limit to something higher than 2? This sounds like the remaining sector sounds get stopped by that as both slots are taken by sector 1.
I have set Sound Channels to 128 in the Options.
But I guess that sound limit is something different. Where do I set that ?


I have been playing with the script some more and finally settled on inserting some delays, which resulted in an acceptable compromise.
There is just a slight change in sound intensity.
Spoiler:
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Problem with sound for moving floor/ceiling

Post by Graf Zahl »

You set the limit with the $limit command in SNDINFO. It has nothing to do with sound channels.
User avatar
Kappes Buur
Persecution Complex
Posts: 176
Joined: Tue Apr 05, 2011 4:30
Location: British Columbia

Re: Problem with sound for moving floor/ceiling

Post by Kappes Buur »

Ah, okay.

Could this sound problem be classified as a bug, then ?
If yes, then I will reissue it in the Bug section.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Problem with sound for moving floor/ceiling

Post by Graf Zahl »

No, it's fully intentional that the default setting for this is 2. Im most cases such sounds tend to drown everything else so they have to be restrained this way.

When Randy removed the limiting feature at the time he transitioned the sound code to FModEx there was a huge outcry because the result was an utter mess so he had to reimplement the feature. Have fun reading the thread over at ZDoom.org.
Locked

Return to “GZDoom”