Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (AndrewAMD, fogman, Grant, juanex), 972 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | chip programmers | 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