#include "THPPlayer.h"
BOOL THPPlayerInit(s32 audioSystem);
| audioSystem | Flag indicating the audio library for simultaneous use. |
Returns TRUE if successful; FALSE otherwise.
This function initializes the player's control structure (the THPPlayer structure), enables a locked cache, and calls THPInit--a THP library low level API function. In addition, this function registers a callback function in the Revolution audio interface to play THP audio data.
This function must be called before any other player functions are called.
The argument specifies the audio library for simultaneous use. When using AX simultaneously, specify THP_MODE_WITH_AX. If there is no audio library for simultaneous use, specify THP_MODE_ALONE.
When using the player simultaneously with the audio library, call an initialization function (AXInit, etc.) for the audio library to be used before calling this function. When using the AX library at the same time, call the THPPlayerInit function when the AX sound output is silent.
03/01/2006 Initial version.