Remarks
Retrieves the portion of waveform currently selected through the tracker. The current selection can be removed/modified calling the WaveformAnalyzer.SetSelection 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]
Public Function GetSelection (
ByRef bSelectionAvailable as Boolean,
ByRef nBeginPosInMs as Int32,
ByRef nEndPosInMs as Int32
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes GetSelection (
ref bool bSelectionAvailable,
ref Int32 nBeginPosInMs,
ref Int32 nEndPosInMs
);
|
|
[C++]
public: enumErrorCodes GetSelection (
ref bool bSelectionAvailable,
ref Int32 nBeginPosInMs,
ref Int32 nEndPosInMs
);
|
|
Parameter
|
Description
|
|
|
bSelectionAvailable
|
Reference that, after returning from the method call, will contain the flag for selection availability.
Supported values are the following:
Value
|
Meaning
|
false
|
No selection is currently available
|
true
|
A selection is currently available and its limits are stored inside nBeginPosInMs and nEndPosInMs parameters
|
|
nBeginPosInMs
|
Reference that, after returning from the method call, will contain the selection's start position, expressed in milliseconds
|
nEndPosInMs
|
Reference that, after returning from the method call, will contain the selection's end position, expressed in milliseconds
|
Return value
Value
|
Meaning
|
|
|
Negative value
|
An error occurred (see the LastError property for further error details)
|
enumErrorCodes.ERR_NOERROR (0)
|
The method call was successful
|
|