1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>THPSimpleInit</title>
10</head>
11
12<body>
13
14<h1>THPSimpleInit</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &quot;THPSimple.h&quot;
19
20BOOL THPSimpleInit(s32 audioSystem);
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<th>audioSystem</th>
27<td>Flag indicating the audio libary to use at the same time.</td>
28  </tr>
29</table>
30
31<h2>Return Values</h2>
32<p>Returns <CODE>TRUE</CODE> if successful, <CODE>FALSE</CODE> otherwise.</p>
33
34<H2>Description</H2>
35<p>The <code>THPSimpleInit</code> function not only initializes the simple player's control structure (<code>THPSimple</code> structure), but also enables locked cache and calls the <a href="../low/THPInit.html"><code>THPInit</code></a> function, a THP library low-level API function. Also, to play THP audio data, a callback function is registered in the Wii audio interface.</p>
36
37<p>Before calling another simple player function, this function must be called.</p>
38
39<p>The argument of the <CODE>THPSimpleInit</CODE> function specifies the audio library to be used at the same time. When using AX at the same time, specify <CODE>THP_MODE_WITH_AX</CODE>. When not using an audio library at the same time, specify <CODE>THP_MODE_ALONE</CODE>.</p>
40
41<p>When using the simple player at the same time as the audio library, before calling this function, please call the initialization function (for example, <code>AXInit</code>) 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.</p>
42
43<H2>See Also</H2>
44<P class="reference">
45<a href="../low/THPInit.html">THPInit</a>
46</P>
47
48<H2>Revision History</H2>
49<P>
502006/03/01 Initial version.<br>
51</P>
52
53<hr><p>CONFIDENTIAL</p></body>
54</html>