snd_tune ( var Handle, var Volume, var Freqency, var Balance);

Modifies the playing sound with the given handle. Changes 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 parameter remains unchanged.

Parameters:

Handle Sound handle, returned by snd_play or ent_playsound.
Volume New volume (0..100); 0 = no change.
Frequency New frequency (10..1000, percentage of the original frequency); 0 = no change.
Balance New balance (-100..+100); 0 = no change.

Speed:

Medium

Example:

var whosh_handle;
whosh_handle = ent_playloop(my,whosh,100);
while (1) 
{
  snd_tune(whosh_handle,(10*total_ticks)%100,0,0);
  wait(1);
}

See also:

snd_play, ent_playsound, ent_playloop, snd_stop, snd_playing ► latest version online