|
Will start playing the sound.
Note that to get a handle to the sound you must first call
STATE_sound_load()
Note that you can call this function again with the same sound file while the sound of the first
call is still playing (Canonically ). In this case you will hear both sounds played together.
The engine will treat the second call as if it is a new sound.
loop is SOUND_LOOP_NORMAL or SOUND_NO_LOOP
SOUND_LOOP_NORMAL will make the sound to be played from the beginning each time it ends.
Example:
DWORD madona STATE_sound_load("madona\\like_a_virgin.mp3", NULL,SOUND_DISTANCE_DEFAULT);
STATE_sound_play(madona, SOUND_LOOP_NORMAL);
Returns OK or VR_ERROR
|