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<h2>C Specification</h2> 16 17<dl> 18<dd><pre><code>#include "THPPlayer.h"</code></pre> 19 </dd> 20<dd><pre><CODE>BOOL THPPlayerOpen(char *fileName, BOOL onMemory);</CODE></pre> 21 </dd> 22</dl> 23 24<h2>Arguments</h2> 25<table border="1" cellpadding="3" cellspacing="0.1"> 26 <tr> 27<td width="120" bgcolor="#ffffe8"><strong><em><FONT face="Courier New">fileName</FONT></em></strong></td> 28<td width="520">Name of the THP movie data file. </td> 29 </tr> 30 <tr> 31<td width="120" bgcolor="#ffffe8"><strong><em><FONT face="Courier New">onMemory</FONT></em></strong></td> 32<td width="520">Flag that specifies streaming or on memory playback.</td> 33 </tr> 34</table> 35 36<h2>Return Values</h2> 37<p>Returns <CODE>TRUE</CODE> if successful; <CODE>FALSE</CODE> otherwise.</p> 38 39<H2>Description</H2> 40<p>This function uses the <code>DVDOpen</code> function to open the THP movie data specified by the first argument and reads the header using the <code>DVDRead</code> function. Next, the function gets the required information from the header and checks to see if the specified data is THP movie data that can be extracted. </p> 41 42<p>Set the second argument to <CODE>FALSE</CODE> if you want to play the THP movie data from the disc using streaming playback; set <CODE>TRUE</CODE> if you want to use on memory playback.</p> 43 44<p>This function initializes the playback of the THP audio data to 127. </p> 45 46 47<H2>See Also</H2> 48 49<H2>Revision History</H2> 50<P>03/01/2006 Initial version.</P> 51 52</body> 53</html> 54