Copyright © 2001-2011 MultiMedia Soft

PlaySoundLoop method

Previous pageReturn to chapter overviewNext page

Remarks

 

Plays a sound, previously loaded through one between LoadSound or LoadSoundFromMemory methods, in looping mode.

 

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.

 

 

Syntax

 

[Visual Basic]

control.PlaySoundLoop (

nPlayer as Integer

) as enumErrorCodes


 

[C++]

short control.PlaySoundLoop (

short nPlayer

);


 

 

Parameter

Description

 

 

nPlayer

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.ERR_NOERROR (0)

The method call was successful