Miles Sound System SDK 7.2a

AIL_get_timer_highest_delay

The function AIL_get_timer_highest_delay returns the highest delay in timer servicing under Win 32.

U32 AIL_get_timer_highest_delay();

Returns

The highest delay since the last call to this function.

Discussion

This function is only available under Windows and MacOS. Under Windows 9x, the OS task switcher can cause the Miles timer to slowdown when the system is under load (the NT scheduler is much better - it rarely slows down). The most common side effect of this timer delay is the digital audio subsystem skipping. This function allows you to measure just how good the OS is servicing your timers.

On Win32 and Win64, you can use the DIG_DS_MIX_FRAGMENT_CNT preference to increase the digital subsystem's mix ahead time to smooth over the delay returned by this function.

On MacOS, you can use the DIG_SM_MIX_FRAGMENT_CNT preference to increase the digital subsystem's mix ahead time to smooth over the delay returned by this function.

The Windows and MacOS thread schedulers usually have the most trouble during disk I/O.


Group: Timer Services
Related Sections: Sharing the CPU under MacOS, Sharing the CPU under Win32, Sharing the CPU under Win64
Related Functions: AIL_serve
Related Basic Types: MILES_PREFERENCES, U32
Related FAQs: My sound is skipping on Windows or MacOS X - what can I do?

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