AXCheckVoiceOffsets

Syntax

#include <cafe.h>
#include <cafe/ax.h>

u32 AXCheckVoiceOffsets(const AXPBOFFSET *maddr);

Parameters

maddr Pointer to a structure of type AXPBOFFSET.

Return Values

Returns 0 if any of the sample buffers that are represented in maddr crosses a 512 MB boundary. Returns 1 if they do not.

Description

The DSP memory controller can access only one 512 MB page at a time. Any voice that has a sample buffer that crosses the boundaries of these pages will be dropped to avoid errors due to this limitation, even if it is rendered on PPC.

This function will check whether a given set of offsets describes a sample buffer that crosses such a boundary. If this function returns 0 for a given set of offsets, it is recommended that the samples be moved to another memory location that does not cross the boundary to avoid being dropped.

Availability

Library Version Availability
Sound 2.0 Yes
Sound 1.0 Yes

Do Not Call From

None.

See Also

AXPBOFFSET
AXSetVoiceOffsets
AXSetVoiceCurrentOffset
AXSetVoiceLoopOffset
AXSetVoiceEndOffset

Revision History

2013/05/08 Automated cleanup pass.
2012/08/01 Cleanup Pass.
2012/05/16 Initial version for SDK 2.05


CONFIDENTIAL