Copyright © 2001-2011 MultiMedia Soft

PlaySound method

Previous pageReturn to chapter overviewNext page

Remarks

 

Plays a sound that has been previously loaded through one between LoadSound or LoadSoundFromMemory methods.

 

A successful call to this method will fire the SoundPlaying event. Once the sound has been performed completely, the control will fire the SoundDone event.

 

 

Syntax

 

[Visual Basic]

control.PlaySound (

nPlayer as Integer

) as enumErrorCodes


 

[C++]

short control.PlaySound (

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