PlaySoundXYLoop
From Original War Support Wiki
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: