#include "THPPlayer.h" BOOL THPPlayerInit(s32 audioSystem);
| audioSystem | Flag indicating the audio libary to use at the same time. |
|---|
Returns TRUE if successful, FALSE otherwise.
The THPPlayerInit function not only initializes the player's control structure (THPPlayer 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 any other player function, this function must be called.
The argument of the THPPlayerInit 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 player at the same time as the audio library, before calling this function, please call the initialization function (AXInit etc.) of the audio library you are going to use. When using the AX library at the same time, please call the THPPlayerInit function when the AX sound output is silent.
2006/03/01 Initial version.
CONFIDENTIAL