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

Solved Increasing the sound speed in the Goldsrc


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-14-2022 , 04:48   Increasing the sound speed in the Goldsrc
Reply With Quote #1

I would to know if is possible to increase the sound speed in the goldsrc engine?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 05-20-2022 at 03:36.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 05-14-2022 , 06:26   Re: Increasing the sound speed in the Goldsrc
Reply With Quote #2

I haven't come across this in my GoldSrc days. As the question is vague and to help the next person, do you mean playback speed of .wav files?
Moody92 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-14-2022 , 07:34   Re: Increasing the sound speed in the Goldsrc
Reply With Quote #3

You can change the speed when playing sounds via client_cmd(), but I don't think you can do it on other sounds, if you mean hooking and modifying their playback.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-14-2022 , 18:49   Re: Increasing the sound speed in the Goldsrc
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
I would to know if is possible to increase the sound speed in the goldsrc engine?
http://amxmodx.org/api/amxmodx/emit_sound
The higher the pitch the faster the sound and vice versa.
__________________
DJEarthQuake is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-15-2022 , 02:29   Re: Increasing the sound speed in the Goldsrc
Reply With Quote #5

I mean playing the sound with a shorter time length this will probably increases the pitch of the sound but i don't think increasing the pitch or decreasing it will effect the length of the sound.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-15-2022 , 02:34   Re: Increasing the sound speed in the Goldsrc
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
You can change the speed when playing sounds via client_cmd(), but I don't think you can do it on other sounds, if you mean hooking and modifying their playback.
Can you show me how is it possible to achieve it using the spk command?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-15-2022 , 04:19   Re: Increasing the sound speed in the Goldsrc
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
Can you show me how is it possible to achieve it using the spk command?
It is documented here.

These commands are also how it's possible to make non-existent VOX sounds by using parts of existing VOX sounds. For example, "spk ^"(t30) light warning(s45) round has be(e50) gun^"" will say "Lightning round has begun" and you can see that I've speed up the entire sentance with the (t30).
__________________

Last edited by fysiks; 05-15-2022 at 04:23.
fysiks is offline
wilian159
Member
Join Date: Dec 2013
Old 05-17-2022 , 21:21   Re: Increasing the sound speed in the Goldsrc
Reply With Quote #8

this ?: https://forums.alliedmods.net/showthread.php?t=50156
__________________
wilian159 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-18-2022 , 06:39   Re: Increasing the sound speed in the Goldsrc
Reply With Quote #9

alright it seems like increasing the pitch will increase the speed of the sound but the sound will be ruined but i guess what i was expecting?

Thanks for the contributors, Solved.

Solution :-

Pitch ( 1 byte ) = clamp( (255 - ( time / sound_duration ) * 155.0), 0, 255)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 05-20-2022 at 03:19.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply


Thread Tools
Display Modes

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 22:36.


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