Copyright © 2008-2019 MultiMedia Soft

ReduceToRange method

Previous pageReturn to chapter overviewNext page

Remarks

 

Deletes the sound portion outside of the given range.

 

A successful call to this method will fire the SoundEditStarted event followed by a number of SoundEditPerc events and finally by the SoundEditDone event.

 

 

Syntax

 

[Visual Basic]

control.ReduceToRange (

nStartPosition as Long,

nEndPosition as Long

) as enumErrorCodes


 

[C++]

short control.ReduceToRange (

long nStartPosition,

long nEndPosition

);


 

 

Parameter

Description

 

 

nStartPosition

Start position, expressed in milliseconds, of the sound range to keep

nEndPosition

End position, expressed in milliseconds, of the sound range to keep. If set to -1 the end position will be set to the end of the sound.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to see the error code meaning

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.