Copyright © 2011-2018 MultiMedia Soft

OnWaveformAnalyzerSelection event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs when a portion of the waveform on the Waveform Analyzer's display has been selected/deselected through a mouse operation or through a call to the WaveformAnalyzer.SetSelection method.

 

This event replaces the usage of the CallbackWaveformAnalyzerSelection 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 COMEventsEnable method.

 

For details about the use of the Waveform Analyzer refer to the How to use the Waveform Analyzer section.

For further details about methods of the Waveform Analyzer refer to the WaveformAnalyzer class section.

 

 

Syntax

 

[Visual Basic 6]

Private Sub EditorApi_OnWaveformAnalyzerSelection ( _

ByVal bSelectionAvailable as Boolean, _

ByVal nBeginPosInMs as Long, _

ByVal nEndPosInMs as Long _

)

 

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

 

Dim WithEvents EditorApi As AudioSoundEditorApi.AudioSoundEditorApiObj


 

 

Event Data

 

Parameters

Description

 

 

bSelectionAvailable

Flag for selection availability.

Supported values are the following:

Value

Meaning

false

No selection is currently available. In this case values passed through nBeginPosInMs and nEndPosInMs parameters must be ignored.

true

A selection is currently available and the start and end positions are inside nBeginPosInMs and nEndPosInMs parameters.

nBeginPosInMs

The selection's start position, expressed in milliseconds

nEndPosInMs

The selection's end position, expressed in milliseconds