This wiki is out of date, use the continuation of this wiki instead

Play wav

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 00:35, 26 April 2007 (edit)
Sandman (Talk | contribs)

← Previous diff
Revision as of 01:17, 26 April 2007 (edit) (undo)
Sandman (Talk | contribs)
m (Example)
Next diff →
Line 35: Line 35:
End End
</pre> </pre>
 +Used in example: [[load_wav]]()

Revision as of 01:17, 26 April 2007


Contents

Definition

INT play_wav ( <INT waveID> , <INT repeats> )

Plays a sound effect previously loaded with load_wav.

Parameters

INT waveID - The WaveID of the sound effect to be played.
INT repeats - Number of times to repeat the sound effect. Use -1 for an infinite loop.

Returns

INT : Errorcode

-1 - Error.
0 - No error.

Example

Program
Private
    int wave;
Begin
    wave = load_wav("my_wav.wav");
    play_wav(wave,0);
    Loop
        frame;
    End
End

Used in example: load_wav()

Personal tools