THPSimpleInit

C Specification

#include "THPSimple.h"
BOOL THPSimpleInit(s32 audioSystem);

Arguments

audioSystem Flag indicating the audio library for simultaneous use.

Return Values

Returns TRUE if successful; FALSE otherwise.

Description

This function initializes the simple player's control structure (the THPSimple structure), enables a locked cache, and calls THPInit, a THP library low-level API function. In addition, it registers a callback function in the Revolution audio interface to play THP audio data.

This function must be called before calling another simple player function.

This function's argument specifies the audio library to use simultaneously. When using AX simultaneously, specify THP_MODE_WITH_AX. When there is no audio library for simultaneous use, specify THP_MODE_ALONE.

When using the simple player at the same time as the audio library, be sure to call an initialization function (AXInit etc.) for the audio library you are going to use before calling this function (THPSimpleInit). When using the AX library simultaneously, call this function when AX sound output is silent.

See Also

THPInit

Revision History

03/01/2006 Initial version.