Copyright © 2001-2018 MultiMedia Soft

VideoPlayer.AudioRendererDelaySet method

Previous pageReturn to chapter overviewNext page



Modifies the current delay applied to the audio stream. The current audio stream delay can be obtained through the VideoPlayer.AudioRendererDelayGet method.


In order to allow applying special effects to the audio stream of video clips, Active DJ Studio implements its own audio renderer which is different respect to the one used by other players like "Windows Media Player™": by default the audio stream has a 200 milliseconds delay respect to the video stream because this works better when dealing with the majority of audio drivers and is not much noticeable on modern PCs having LCD monitors instead of CRT monitors; in case this should be noticeable on your side, you could use this method in order to remove/reduce this delay.


For further details about the use of the embedded video player see the VideoPlayer object section.

For details about video clips rendering refer to the How to play video files through DirectShow tutorial.





[Visual Basic]

control.VideoPlayer.AudioRendererDelaySet (

nPlayer as Integer,

nDelay as Long

) as enumErrorCodes



short control.VideoPlayer.AudioRendererDelaySet (

short nPlayer,

long nDelay










Number representing the zero-based index of the player that will use the video player.


Audio delay expressed in milliseconds.

The amount of default delay and the available delay range depends upon the audio rendering mode in use set through the VideoPlayer.AudioRendererModeSet method:


200 milliseconds when the audio rendering mode has been set to AUDIO_RENDERER_MODE_CUSTOM, AUDIO_RENDERER_MODE_CUSTOM_RESAMPLE_STEREO or AUDIO_RENDERER_MODE_CUSTOM_NO_SURROUND; in this cases the supported range from -200 to 500 milliseconds. Negative values allow to fine tune the audio stream rendering in case it should result delayed respect to the video stream.


0 milliseconds when the audio rendering mode has been set to AUDIO_RENDERER_MODE_DS_STANDARD or AUDIO_RENDERER_MODE_CUSTOM_2; in this cases the supported range from 0 to 500 milliseconds.



Return value






Negative value

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

enumErrorCodes.ERR_NOERROR (0)

The method call was successful