[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - Sound issue in DP

Sound issue in DP

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Sound issue in DP

Postby Cobalt » Tue Feb 03, 2015 4:26 pm

I emailed LH a few times on this, so far no answer.

I believe I have found a bug with DP's new sound feature where sounds now travel with entities.

In my experimentation I have some ents spawned that represent "wind"....and randomly travel around open spaces near skyboxes. When they contact world, they 'rebound' and gain velocity. I mostly have their attenuaiton levels at static or idle making them short range. So far the system is good when you are close near these, you can hear wind move by you as they travel. However if you are in a distant room far away from the attenuaiton range, and you firs the grappling hook, the hook "picks up" the wind noises, and seems to even reflect their attenuation levels. I have noticed other moving ents like spikes from traps sometimes pick these up too. I have checked for channel conflicts, and I am doing CHAN_AUTO on the wind sounds, and I have changed the channel on the Hook for its noises, but no help. I had the winds movetype set to flymissile initially when I noticed the bug. I changed it to fly, and it seems to have helped reduce the sound level, but the problem is def still there. Im guessing the problem is engine side and related to sounds now moving with ents when the sound is applied to them directly. I suppose I could go with pointsound, but it does not support pitching the sound. Any input appreciated.
User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA

Re: Sound issue in DP

Postby frag.machine » Tue Feb 03, 2015 9:25 pm

Interesting. CHAN_AUTO can makes things a bit unpredictable. Have you tried to use a fixed channel for the wind entity ?
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: Sound issue in DP

Postby Cobalt » Tue Feb 03, 2015 11:16 pm

User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA

Re: Sound issue in DP

Postby frag.machine » Tue Feb 03, 2015 11:58 pm

I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: Sound issue in DP

Postby Spike » Wed Feb 04, 2015 12:51 am

chan_auto doesn't 'pick' anything. using chan_auto won't make it pick a random channel. channel 0 is channel 0, just as channel 1 is channel 1. the ONLY difference is that channel 0 will not remove any sounds already playing on that entity's channel 0. and yes, each entity has its own set of channels - playing any sample on a player entity should never replace a sample playing on a door or a different player.

if a sound is lingering weirdly in the wrong locations, chances are its because the server is now culling the entity for some reason and the client doesn't know where it moved to. you can always try disabling pvs and/or traceline culling (probably both) as a test.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: Sound issue in DP

Postby Cobalt » Wed Feb 04, 2015 1:22 am

User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA

Re: Sound issue in DP

Postby Spike » Wed Feb 04, 2015 2:03 am

ch->entnum = MAX_EDICTS; // entity was removed, disown sound
this can prevent sounds from being replaced once the entity leaves pvs, which I would consider a bug in DP and could cause problems with doors and stuff in exotic situations...
it'll also start to use snd_csqcchannelXvolume instead of snd_worldchannelXvolume although I doubt anything but xonotic cares.

I don't see any way for it to follow the wrong entity though, just ways for it to stop following at all.


EF_NODRAW doesn't do what you think it does. its really EF_DONTTELLTHECLIENTABOUTTHISENTITYMOOHARHARMINEALLMINEMYPRECIOUUUUS.
Thus unconditionally triggering the ch->entnum=MAX_EDICTS bug (and related issues) that I mentioned earlier.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: Sound issue in DP

Postby Cobalt » Wed Feb 04, 2015 6:20 pm

User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA

Re: Sound issue in DP

Postby Cobalt » Sat Mar 21, 2015 6:02 pm

Another sound question not related to this - DP_POINTSOUND

Does not allow a sound channel to be assigned, is it assumed to be using CHAN_AUTO ?
User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 2 guests