Copyright © 2001-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]

control.GetOutputDeviceLatency (

nIndex as Integer

) as Integer


 

[C++]

short control.GetOutputDeviceLatency (

short nIndex

);


 

 

Parameter

Description

 

 

nIndex

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)

> 0

The current latency time of the chosen output device.