1<html> 2 3<head> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css"> 6<title>THPUtyReadTHPAudioInfoOld</title> 7</head> 8 9<body> 10 11<h1>THPUtyReadTHPAudioInfoOld</h1> 12 13<h2>C Specification</h2> 14 15<dl> 16<dd><pre><code>#include <win32/thputilities.h></code></pre></dd> 17<dd><pre><code>s32 THPUtyReadTHPAudioInfoOld(FILE* ip, THPAudioInfo* audioinfo);</code></pre></dd> 18</dl> 19 20<h2>Arguments</h2> 21<table border="1" cellpadding="3" cellspacing="0.1"> 22 <tr> 23<td width="120" bgcolor="#ffffe8"><strong><em><CODE>ip</CODE></em></strong></td> 24<td width="520">File pointer to THP movie data that is version 1.0 or earlier.</td> 25 </tr> 26 <tr> 27<td width="120" bgcolor="#ffffe8"><strong><em><CODE>audioinfo</CODE></em></strong></td> 28<td width="520">Pointer to the <A href="../../common/THPAudioInfo.html"><code>THPAudioInfo</code></A> structure.</td> 29 </tr> 30</table> 31 32<h2>Return Values</h2> 33<p> 34Returns one of the following codes: 35</p> 36 37<table border="1"> 38 <tbody> 39 <tr align="center" bgcolor="#C0C0C0"> 40<td><strong>Code</strong></td> 41<td width=50><strong>Value</strong></td> 42<td><strong>Description</strong></td> 43 </tr> 44 <tr> 45<td><CODE>THP_ERROR_NOERROR</CODE></td> 46 <td align="center">0</td> 47<td>The function ended normally. </td> 48 </tr> 49 <tr> 50<td><CODE>THP_ERROR_FILEIO</CODE></td> 51 <td align="center">1</td> 52<td>Failed to read or write from file. </td> 53 </tr> 54 </tbody> 55</table> 56 57<h2>Description</h2> 58<p> 59This function reads a <A href="../../common/THPAudioInfo.html"><code>THPAudioInfo</code></A> structure from the THP movie data (version 1.0 or older) specified by <code>ip</code>. The read position must be set in advance to <A href="../../common/THPAudioInfo.html"><code>THPAudioInfo</code></A>'s position. 60</p> 61 62<h2>See Also</h2> 63<p> 64<A href="../../common/THPAudioInfo.html"><code>THPAudioInfo</code></A> 65</p> 66 67<h2>Revision History</h2> 68<P>2006/03/01 Initial version.</P> 69<hr> 70<P>CONFIDENTIAL</p> 71</BODY> 72</HTML>