Miles Sound System SDK 7.2a

AIL_digital_CPU_percent

The function AIL_digital_CPU_percent returns the percentage of total CPU being spent in the Miles digital processing loop.

S32 AIL_digital_CPU_percent(
  HDIGDRIVER dig
);

In Parameters

dig
indicates the driver that you want to profile.

Returns

Percentage from 0 to 100 of the CPU that was used by the specified digital driver since the last time you called AIL_digital_CPU_percent.

Discussion

This includes mixing, format conversion, on-the-fly decompression of formats such as IMA ADPCM or MPEG Layer 3, and filling of the system buffers. Note that the tasks profiled by this function may vary from platform to platform.

Note that AIL_digital_CPU_percent provides an indication of loading as if the machine had only a single CPU. That is, if it reports, say, 8%, then it used 8% of just one of the CPUs. This is different than the Windows Task Manager which divides the percentage used by the number of CPUs. So, if AIL_digital_CPU_percent reports 8%, then Task Manager will say 4% on a dual CPU or hyper-threaded machine.


Group: Digital Audio Services
Related Functions: AIL_digital_CPU_percent, AIL_quick_set_reverb_levels, AIL_sample_reverb_levels, AIL_set_sample_reverb_levels
Related Basic Types: HDIGDRIVER, S32
Related FAQs: How much CPU do the various filters use?

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