AIInit

Syntax

#include <revolution/ai.h>

void AIInit(u8 *stack);

Arguments

stack Pointer to the upper address on the stack that the AI DMA interrupt (AIDINT) callback uses. In other words, the end of the memory buffer to use for the stack must be set here (stacks grow downward in memory). Note that this value must be 8-byte aligned. If NULL is set, the current stack is used instead.

Return Values

None.

Description

The AIInit function initializes the AI library. This function does the following:

The AIInit function must be called before any audio operations or system AI calls. This function only needs to be called once for the lifetime of an application. Subsequent calls to this function will be ignored.

See Also

None.

Revision History

2006/03/01 Initial version.


CONFIDENTIAL