Copyright © 2001-2018 MultiMedia Soft

PlaySoundLoop method

Previous pageReturn to chapter overviewNext page



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. A looping sound can be stopped only through a call to the StopSound method. If you need a better control over sound looping use the PlaySoundRangeLoop method.





[Visual Basic]

control.PlaySoundLoop (

nPlayer as Integer

) as enumErrorCodes



short control.PlaySoundLoop (

short nPlayer









Number representing the zero-based index of the player that will play the sound



Return value






Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.ERR_NOERROR (0)

The method call was successful