PlaySoundLoop method |
|
Remarks
Plays in looping mode a sound that has been previously loaded through one of the many methods having the "Load" prefix like LoadSound or LoadSoundFromMemory,
By default playback continues till the end of the sound stream until the final position is not moved through the PlaySoundMoveFinalPos method.
A successful call to this method will fire the SoundPlaying event.
Syntax
[Visual Basic] Public Function PlaySoundLoop ( nPlayerIndex as Int16 ) as enumErrorCodes |
[C#] public enumErrorCodes PlaySoundLoop ( Int16 nPlayerIndex ); |
[C++] public: enumErrorCodes PlaySoundLoop ( Int16 nPlayerIndex ); |
Parameter |
Description |
|
|
nPlayerIndex |
Number representing the zero-based index of the player that will play the sound |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful |