| Miles Sound System SDK 7.2a |
The function AIL_scratchpad_policy returns the current MSS scratchpad-usage policy.
MSS_RESOURCE_POLICY AIL_scratchpad_policy( void ); |
The resource policy currently applicable to scratchpad RAM usage.
By default, MSS does not use the PS2 scratchpad. However, certain operations (currently limited to MP3 decoding and DTS encoding) can be accelerated slightly by giving MSS permission to store intermediate results in SPRAM. See AIL_set_scratchpad_policy for a detailed discussion.
You can call AIL_set_scratchpad_policy and AIL_scratchpad_policy at any time. However, any requested changes made to Miles's scratchpad-usage policy will not take effect until the next end-of-buffer interrupt that Miles receives from the IOP. At that time, the value reported by AIL_scratchpad_policy will change to reflect the new policy. Note that any foreground calls made by the application that end up calling the MP3 decoder to decompress audio data will not save the scratchpad contents under any conditions. This means that if you need to disable scratchpad usage in preparation for a foreground call to AIL_process_digital_audio or a similar function, you'll want to poll AIL_scratchpad_policy first until your requested change takes effect.
Group:
Low-Level Sony PlayStation 2 Support Services
Related Functions:
AIL_process_digital_audio, AIL_scratchpad_policy, AIL_set_scratchpad_policy
Related Basic Types:
MSS_RESOURCE_POLICY, void
For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.