Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/23/26 21:52
WFO Training with parallel cores Zorro64
by Martin_HH. 02/23/26 15:29
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 6,052 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Sound SPEED controller: #17524
09/24/03 13:37
09/24/03 13:37

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



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 Offline
Senior Expert
myrlyn68  Offline
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

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Aha, but i don´t get how to toggle on and toggle off with the pressing of an X key

Re: Sound SPEED controller: #17527
09/24/03 19:53
09/24/03 19:53
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
just use on_key = function;
and define your function.


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1