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<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css">
7<title>THPUtyChangeAudioTrack</title>
8</head>
9
10<body>
11
12<h1>THPUtyChangeAudioTrack</h1>
13
14<h2>Syntax</h2>
15<dl><dd><pre class="construction">
16#include &lt;win32/thputilities.h&gt;
17
18s32 THPUtyChangeAudioTrack(FILE*            iop,
19                           THPFileHeader*   fileHeader,
20                           THPAudioHandle** audioHandleList);
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<th>iop</th>
27<td>File pointer to the THP movie data for which you want to change the audio data.</td>
28  </tr>
29  <tr>
30<th>fileHeader</th>
31<td>Pointer to the <code>THPFileHeader</code> structure that stores THP header information.</td>
32  </tr>
33  <tr>
34<th>audioHandleList</th>
35<td>Pointer list of <A href="../thpaudio/THPAudioHandle.html"><code>THPAudioHandle</code></A> structures associated with the audio data to replace.</td>
36  </tr>
37</table>
38
39<h2>Return Values</h2>
40<p>
41Returns one of the following codes.
42</p>
43
44<TABLE class="arguments" border="1" >
45  <tbody>
46    <tr align="center">
47<td bgcolor="#CCCCCC">Code</td>
48<td bgcolor="#CCCCCC" width=50>Value</td>
49<td bgcolor="#CCCCCC">Description</td>
50    </tr>
51    <tr>
52<th>THP_ERROR_NOERROR</th>
53      <td align="center">0</td>
54<td>The function ended normally.</td>
55    </tr>
56    <tr>
57<th>THP_ERROR_FILEIO</th>
58      <td align="center">1</td>
59<td>Failed to read to or write from file.</td>
60    </tr>
61    <tr>
62<th>THP_ERROR_THPFILE</th>
63      <td align="center">2</td>
64<td>The THP movie data is invalid.</td>
65    </tr>
66  </tbody>
67</table>
68
69<h2>Description</h2>
70<p>
71Replaces the audio track in the THP movie data specified by <SPAN class="argument">iop</SPAN> with the audio data specified by <SPAN class="argument">audioHandleList</SPAN>.
72</p>
73
74<h2>See Also</h2>
75<p class="reference">
76<A href="../thpaudio/THPAudioHandle.html">THPAudioHandle</A>
77</p>
78
79<h2>Revision History</h2>
80<P>
812006/03/01 Initial version.<br>
82</P>
83
84<hr><p>CONFIDENTIAL</p></body>
85</html>