Copyright © 2008-2019 MultiMedia Soft

Effects.CustomDspApply method

Previous pageReturn to chapter overviewNext page



Applies a custom DSP effect to the given portion of 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.


For further details about managing a custom DSP effect refer to the How to manage custom DSP effects section.

For further details about methods related to the use of special effects refer to the Effects COM object.





[Visual Basic]

control.Effects.CustomDspApply (

nStartPosition as Long,

nEndPosition as Long,

nIdDsp as Long,

nUserData as Long

) as enumErrorCodes



short control.Effects.CustomDspApply (

long nStartPosition,

long nEndPosition,

long nIdDsp,

long nUserData









Start position, expressed in milliseconds, of the affected sound range.


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


Unique identifier of the custom DSP as returned by the Effects.CustomDspExternalLoad or by the Effects.CustomDspInternalLoad methods


User data to pass to the custom DSP



Return value






Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.