AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Increasing the sound speed in the Goldsrc (https://forums.alliedmods.net/showthread.php?t=337777)

Natsheh 05-14-2022 04:48

Increasing the sound speed in the Goldsrc
 
I would to know if is possible to increase the sound speed in the goldsrc engine?

Moody92 05-14-2022 06:26

Re: Increasing the sound speed in the Goldsrc
 
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?

OciXCrom 05-14-2022 07:34

Re: Increasing the sound speed in the Goldsrc
 
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.

DJEarthQuake 05-14-2022 18:49

Re: Increasing the sound speed in the Goldsrc
 
Quote:

Originally Posted by Natsheh (Post 2779370)
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.

Natsheh 05-15-2022 02:29

Re: Increasing the sound speed in the Goldsrc
 
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.

Natsheh 05-15-2022 02:34

Re: Increasing the sound speed in the Goldsrc
 
Quote:

Originally Posted by OciXCrom (Post 2779381)
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?

fysiks 05-15-2022 04:19

Re: Increasing the sound speed in the Goldsrc
 
Quote:

Originally Posted by Natsheh (Post 2779441)
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).

wilian159 05-17-2022 21:21

Re: Increasing the sound speed in the Goldsrc
 
this ?: https://forums.alliedmods.net/showthread.php?t=50156

Natsheh 05-18-2022 06:39

Re: Increasing the sound speed in the Goldsrc
 
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)


All times are GMT -4. The time now is 16:28.

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