Copyright © 2001-2019 MultiMedia Soft

PlaySoundDisableLoop method

Previous pageReturn to chapter overviewNext page

Remarks

 

Disables an eventual loop, set by a previous call to PlaySoundLoop, PlaySoundEnableLoop or PlaySoundRangeLoop methods, without stopping the current playback: playback will terminate when reaching the eventual end of the range established by the call to PlaySoundEnableLoop or PlaySoundRangeLoop method.

 

The loop can be also disabled by calling the PlaySound method: in this case the sound will continue playing without interruption until reaching the end of the sound file

 

 

Syntax

 

[Visual Basic]

control.PlaySoundDisableLoop (

nPlayer as Integer

) as enumErrorCodes


 

[C++]

short control.PlaySoundDisableLoop (

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