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="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>THPPlayerOpen</title> 10</head> 11 12<body> 13 14<h1>THPPlayerOpen</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include "THPPlayer.h" 19 20BOOL THPPlayerOpen(char *fileName, BOOL onMemory); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<th>fileName</th> 27<td>Name of the THP movie data file.</td> 28 </tr> 29 <tr> 30<th>onMemory</th> 31<td>Flag that specifies streaming playback or memory-based playback.</td> 32 </tr> 33</table> 34 35<h2>Return Values</h2> 36<p>Returns <CODE>TRUE</CODE> if successful, <CODE>FALSE</CODE> otherwise.</p> 37 38<H2>Description</H2> 39<p>The <code>THPPlayerOpen</code> function uses the <code>DVDOpen</code> function to open the THP movie data specified with the first argument, and reads its header using the <code>DVDRead</code> function. Next, it gets the required information from the header just read and checks to see if the specified data is extractable THP movie data.</p> 40 41<p>Set the second argument to <CODE>FALSE</CODE> if you want to play the THP movie data from the disk using streaming playback; set it to <CODE>TRUE</CODE> if you want to use memory-based playback.</p> 42 43<p>The <code>THPPlayerOpen</code> function initializes the THP audio data's playback volume to 127.</p> 44 45<H2>See Also</H2> 46<p>None.</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> 55