Copyright © 2005-2019 MultiMedia Soft

GetOutputDeviceLatency method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves the latency time (expressed in milliseconds) of a certain output device (sound card). For details about latency, take a look to the How to deal with latency section.

 

 

Syntax

 

[Visual Basic]

Public GetOutputDeviceLatency (

nOutputIndex as Int16

) as Int16


 

[C#]

public Int16 GetOutputDeviceLatency (

Int16 nOutputIndex

);


 

[C++]

public: Int16 GetOutputDeviceLatency (

Int16 nOutputIndex

);


 

 

Parameter

Description

 

 

nOutputIndex

Number representing the zero-based index of the output device whose latency time must be retrieved

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

Value > 0

The current latency time of the chosen output device.