Miles Sound System SDK 7.2a

AIL_digital_latency

The function AIL_digital_latency returns the approximate latency of a sound if it were started immediately.

S32 AIL_digital_latency(
  HDIGDRIVER dig
);

In Parameters

dig
indicates the driver that you want to query.

Returns

Milliseconds until the sound should be heard by the end-user.

Discussion

Latency is a combination of the sound card, sound driver, sound technology (DirectSound, waveOut or hardware drivers). This function isn't guaranteed to be perfect, but it will be as accurate as possible.

This function will not return meaningful results if a per-voice output filter (DirectSound3D or EAX) option was chosen when the digital driver was opened.


Group: Digital Audio Services
Related Basic Types: HDIGDRIVER, S32
Related FAQs: How much latency does Miles have?

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.