Copyright © 2008-2018 MultiMedia Soft

InsertSilence method

Previous pageReturn to chapter overviewNext page

Remarks

 

Inserts a portion of silence inside the sound under editing.

 

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.InsertSilence (

nStartPosition as Long,

nSilenceLength as Long

) as enumErrorCodes


 

[C++]

short control.InsertSilence (

long nStartPosition,

long nSilenceLength

);


 

 

Parameter

Description

 

 

nStartPosition

Start position, expressed in milliseconds, where the portion of silence will be inserted

nSilenceLength

Silence length, expressed in milliseconds

 

 

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.