Remarks
Enables/disables playback of audio data during the manual scroll of the waveform through the mouse.
Current settings can be obtained through the WaveformScroller.PlaybackOnScrollInfoGet method.
For further details about methods of the Waveform scroller refer to the WaveformScroller object.
For a tutorial about the use of Waveform scrollers refer to the How to scroll the sound's waveform during playback tutorial.
Syntax
[Visual Basic]
Public Function PlaybackOnScrollEnable (
hWndWaveformScroller as IntPtr,
bEnable as Boolean,
nScrollSensitivity as Int32
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes PlaybackOnScrollEnable (
IntPtr hWndWaveformScroller,
bool bEnable,
Int32 nScrollSensitivity
);
|
|
[C++]
public: enumErrorCodes PlaybackOnScrollEnable (
IntPtr hWndWaveformScroller,
bool bEnable,
Int32 nScrollSensitivity
);
|
|
Parameter
|
Description
|
|
|
hWndWaveformScroller
|
Handle of the control returned by a previous call to the WaveformScroller.Create method
|
bEnable
|
Boolean value that specifies if playback is enabled or disabled.
Supported values are the following:
Value
|
Meaning
|
false (default)
|
Playback is disabled
|
true
|
Playback is enabled
|
|
nScrollSensitivity
|
Scroll sensitivity expressed in percentage.
Default value is 100, meaning that audio data will be played at the same rate of the waveform scrolling during mouse movement: values lower than 100 will decrease the speed of playback while values higher than 100 will increase the speed of playback.
|
Return value
Value
|
Meaning
|
|
|
Negative value
|
An error occurred (see the LastError property for further error details)
|
enumErrorCodes.NOERROR (0)
|
The method call was successful.
|
|