Copyright © 2011-2023 MultiMedia Soft

CallbackSoundPlaybackStatusChanged delegate

Previous pageReturn to chapter overviewNext page

Remarks

 

Callback delegate invoked when the playback status of a sound being played changes: this callback can be set through a call to the CallbackSoundPlaybackStatusChangedSet method.

 

For further details about callback delegates see the How to synchronize the container application with the API tutorial.

 

 

Syntax

 

[Visual Basic]

Public Delegate Sub CallbackSoundPlaybackStatusChanged (

nStatus As enumPlaybackStatus

)


 

[C#]

public delegate void CallbackSoundPlaybackStatusChanged (

enumPlaybackStatus nStatus

)


 

[C++]

public delegate void CallbackSoundPlaybackStatusChanged (

enumPlaybackStatus nStatus

)


 

Parameters

Description

 

 

nStatus

Identifier of the sound playback status

Supported values are the following:

Mnemonic Value

Value

Meaning

PLAYBACK_NO_SOUND

0

Occurs when the sound is closed through the CloseSound method

PLAYBACK_PLAYING

1

Occurs when sound playback is started through a call to PlaySound, PlaySoundRange or ResumeSound methods

PLAYBACK_PAUSED

2

Occurs when sound playback is paused through a call to PauseSound method.

PLAYBACK_STOPPED

3

Occurs when sound playback is stopped through a call to StopSound method or when playback of the loaded sound is completed: in the latest case the OnSoundPlaybackDone event is generated as well.