Copyright © 2011-2023 MultiMedia Soft

OnSoundPlaybackStatusChanged event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs whenever the status of a playback session changes.

 

This event replaces the usage of the CallbackSoundPlaybackStatusChanged delegate and is only intended for usage with applications developed using Visual Basic 6 (which results unreliable when dealing with delegates and callbacks) and, in order to be enabled, requires a call to the COMEventEnable method with the nEventType parameter set to EVENT_TYPE_EDT_SOUND_STATUS_CHANGED.

 

 

Syntax

 

[Visual Basic 6]

Private Sub EditorApi_OnSoundPlaybackStatusChanged ( _

ByVal nStatus As enumPlaybackStatus _

)

 

where "EditorApi" is declared in Visual Basic 6 code as:

 

Dim WithEvents EditorApi As AudioSoundEditorApi.AudioSoundEditorApiObj


 

Event Data

 

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.