Remarks
Deletes the sound portion outside of the given range.
During the execution of the editing session the CallbackEditPerc delegate is invoked in order to notify about the percentage of advancement.
For further details about callback delegates see the How to synchronize the container application with the API tutorial.
Syntax
[Visual Basic]
Public Function ReduceToRange (
nStartPosition as Int32,
nEndPosition as Int32
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes ReduceToRange (
Int32 nStartPosition,
Int32 nEndPosition
);
|
|
[C++]
public: enumErrorCodes ReduceToRange (
Int32 nStartPosition,
Int32 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 last error.
|
enumErrorCodes.ERR_NOERROR (0)
|
The method call was successful.
|
|