Copyright © 2005-2011 MultiMedia Soft

VideoPlayer.AudioDelaySet method

Previous pageReturn to chapter overviewNext page

Remarks

 

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

 

In order to allow applying special effects to the audio stream of video clips, Audio 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 class section.

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

 

 

Syntax

 

[Visual Basic]

Public Function AudioDelaySet (

nPlayerIndex as Int16,

nDelay as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes AudioDelaySet (

Int16 nPlayerIndex,

Int32 nDelay

);


 

[C++]

public: enumErrorCodes AudioDelaySet (

Int16 nPlayerIndex,

Int32 nDelay

);


 

Parameter

Description

 

 

nPlayerIndex

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

nDelay

Audio delay expressed in milliseconds. Can be in the range from -200 to 500.

Negative values allow to fine tune the audio stream rendering in case it should result delayed respect to the video stream.

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.NOERROR (0)

The method call was successful.