Goto https://www.stucuk.netGoto https://www.atlanticaonlinewiki.comGoto https://www.game-requirements.com

PlaySoundXYLoop

From Original War Support Wiki

Jump to: navigation, search

Plays a looped .wav sound located in "sound\" at the specified hexagons. The name of the .wav files should't contain the extension ".wav" in the SAIL code.
If the position isn't valid sound won't play.

Syntax:

PlaySoundXYLoop(x, y, 'filename');


For play sound normally (global):

PlaySoundXYLoop(-100, -1, 'filename');


For play sound in loop (global):

id := PlaySoundXYLoop(-100, -1, 'filename');


For stop sound:

StopSound(id);


Example usage:

Function PlayMyTrack();
var s_id;
begin
s_id := PlaySoundXYLoop(-100, -1, 'MyCrazyTrack');
Wait(3$00);
StopSound(s_id);
End;



Only works in the latest version (2.0.6.143 and higher).


Check also:

Personal tools
Clanbase
This is a cached copy of the requested page, and may not be up to date.

Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.

(Can't contact the database server: MySQL functions missing, have you compiled PHP with the --with-mysql option? )


You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.