Copyright © 2006-2018 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 through callback delegates 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 RecordedSound.FreeMemory method

PLAYBACK_PLAYING

1

Occurs when sound playback is started through a call to RecordedSound.Play, RecordedSound.PlayRange or RecordedSound.Resume methods

PLAYBACK_PAUSED

2

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

PLAYBACK_STOPPED

3

Occurs when sound playback is stopped through a call to RecordedSound.Stop method or when playback of the loaded sound is completed: in the latest case the CallbackSoundPlaybackDone delegate is invoked as well.