Raised This Month: $51 Target: $400
 12% 

EmitSoundToClient very quiet, SNDLEVEL values not behaving as they should


Post New Thread Reply   
 
Thread Tools Display Modes
Boots Raingear
Junior Member
Join Date: Jul 2010
Old 08-09-2010 , 12:57   Re: EmitSoundToClient very quiet, SNDLEVEL values not behaving as they should
Reply With Quote #11

Thanks for the reply. That makes a lot of sense.
Boots Raingear is offline
FishDude
Member
Join Date: Jul 2014
Old 11-03-2015 , 19:22   Re: EmitSoundToClient very quiet, SNDLEVEL values not behaving as they should
Reply With Quote #12

Context: TF2.

I almost do not know how to code, but ... I use the "dirty" trick to increase the volume: just double or triple call function EmitSoundToClient.
I do not understand why that's the first line gives a doubling of the volume, and the second example of the volume does not change. How can it be?

(1) Volume x 2
Code:
EmitSoundToClient(client,g_soundName);
EmitSoundToClient(client,g_soundName);
(2) Volume x1, why?
Code:
EmitSoundToClient(client,g_soundName,SNDCHAN_AUTO,SNDLEVEL_NORMAL,SND_NOFLAGS,SNDVOL_NORMAL);
EmitSoundToClient(client,g_soundName,SNDCHAN_AUTO,SNDLEVEL_NORMAL,SND_NOFLAGS,SNDVOL_NORMAL);


Despite the fact that many years have passed since the opening this topic, seems in sound engine something is still not right.
The following lines give exactly the same volume level, although judging by sourcemod\scripting\include\sdktools_sound.in c difference should be.
Code:
EmitSoundToClient(client,g_soundName,SNDCHAN_AUTO,SNDLEVEL_NORMAL);
...and...
EmitSoundToClient(client,g_soundName,SNDCHAN_AUTO,SNDLEVEL_RAIDSIREN);

Last edited by FishDude; 11-03-2015 at 19:23.
FishDude is offline
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 11-06-2015 , 19:33   Re: EmitSoundToClient very quiet, SNDLEVEL values not behaving as they should
Reply With Quote #13

I don't know if this relates to your problem at all but I read something about a problem with emitsound (don't know the goods of it) over here: https://wiki.alliedmods.net/Csgo_quirks
This include file fixes the problem mentioned there: https://forums.alliedmods.net/showthread.php?t=237045

Again no idea if this is related to your problem, just felt like mentioning it, just in case
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.
tommie113 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-06-2015 , 19:44   Re: EmitSoundToClient very quiet, SNDLEVEL values not behaving as they should
Reply With Quote #14

sound level works like "distance", how loud and how far that sound goes.
__________________
Do not Private Message @me
Bacardi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode