|
|
|
|
Sound SPEED controller:
#17524
09/24/03 13:37
09/24/03 13:37
|
Anonymous
OP
Unregistered
|
Anonymous
OP
Unregistered
|
How to control sound speed? I mean.. you press S for example, and the sound slows down an 40% mayb an external dll?
|
|
|
Re: Sound SPEED controller:
#17525
09/24/03 13:42
09/24/03 13:42
|
Joined: Feb 2003
Posts: 2,826 Margaritaville (Redneck Rivier...
myrlyn68
Senior Expert
|
Senior Expert
Joined: Feb 2003
Posts: 2,826
Margaritaville (Redneck Rivier...
|
Quote:
snd_TUNE (Handle, Volume, Freq, balance); Modifies the playing sound with the handle number given by handle. It can change the volume (0..100), the frequency (10..1000, percentage of the original frequency) and the balance (-100..+100). If one of the parameters is 0, the property remains unchanged. Parameters: handle - Handle of Sounds. Volume - new volume (0..100). By 0 the current volume won't be changed. Freq - New frequency (10..1000, percentage of the original frequency). By 0 the current frequency won't be changed. Balance - balance (-100..+100). By 0 the current balöance won't be changed. Speed: middle Example:
var whosh_handle; whosh_handle = ent_playloop(my,whosh,100); while (1) { ifndef SERVER; // no sound on server snd_tune(whosh_handle,(10*total_ticks)%100,0,0); endif; wait(1); }
See also:
snd_play, snd_loop, ent_playsound, ent_playloop, snd_stop, snd_playing
It is all in the manual.
Virtual Worlds - Rebuilding the Universe one Pixel at a Time.
Take a look - daily news and weekly content updates.
|
|
|
Re: Sound SPEED controller:
[Re: myrlyn68]
#17526
09/24/03 17:18
09/24/03 17:18
|
Anonymous
OP
Unregistered
|
Anonymous
OP
Unregistered
|
Aha, but i don´t get how to toggle on and toggle off with the pressing of an X key
|
|
|
|
|
|
|