Copyright © 2006-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_REC_SOUND_STATUS_CHANGED.

 

 

Syntax

 

[Visual Basic 6]

Private Sub RecorderApi_OnSoundPlaybackStatusChanged ( _

ByVal nStatus As enumPlaybackStatus _

)

 

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

 

Dim WithEvents RecorderApi As AudioSoundRecorderApi.AudioSoundRecorderApiObj


 

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 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 OnSoundPlaybackDone event is generated as well.