THPSimpleInit

Syntax

#include "THPSimple.h"

BOOL THPSimpleInit(s32 audioSystem);

Arguments

audioSystem Flag indicating the audio libary to use at the same time.

Return Values

Returns TRUE if successful, FALSE otherwise.

Description

The THPSimpleInit function not only initializes the simple player's control structure (THPSimple structure), but also enables locked cache and calls the THPInit function, a THP library low-level API function. Also, to play THP audio data, a callback function is registered in the Wii audio interface.

Before calling another simple player function, this function must be called.

The argument of the THPSimpleInit function specifies the audio library to be used at the same time. When using AX at the same time, specify THP_MODE_WITH_AX. When not using an audio library at the same time, specify THP_MODE_ALONE.

When using the simple player at the same time as the audio library, before calling this function, please call the initialization function (for example, AXInit) of the audio library you are going to use. When using AX library at the same time, please call this function when the AX sound output is silent.

See Also

THPInit

Revision History

2006/03/01 Initial version.


CONFIDENTIAL