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>THPAudioCreateHandle</title> 8</head> 9 10<body> 11 12<h1>THPAudioCreateHandle</h1> 13 14<h2>Syntax</h2> 15<dl><dd><pre class="construction"> 16#include <win32/thpaudio.h> 17 18THPAudioHandle* THPAudioCreateHandle(char* fileName, f32 framerate); 19</pre></dd></dl> 20 21<h2>Arguments</h2> 22<TABLE class="arguments" border="1" > 23 <tr> 24<th>fileName</th> 25<td>File name of the wav file to convert.</td> 26 </tr> 27 <tr> 28<th>framerate</th> 29<td>THP movie data frame rate</td> 30 </tr> 31</table> 32 33<h2>Return Values</h2> 34<p> 35Returns the pointer to the <A href="THPAudioHandle.html"><code>THPAudioHandle</code></A> structure if successful, and <code>NULL</code> otherwise. 36</p> 37 38<h2>Description</h2> 39<p> 40The <code>THPAudioCreateHandle</code> function internally allocates a <A href="THPAudioHandle.html"><code>THPAudioHandle</code></A> structure using the <A href="../thpcore/THPMalloc.html"><code>THPMalloc</code></A> function. Next, after opening the wav file specified by <SPAN class="argument">fileName</SPAN>, it gets the wav file information and stores it in the allocated <A href="THPAudioHandle.html"><code>THPAudioHandle</code></A> structure. 41</p> 42<p> 43When the conversion to THP audio data is complete, please use the <A href="THPAudioFreeHandle.html"><code>THPAudioFreeHandle</code></A> function to release the <A href="THPAudioHandle.html"><code>THPAudioHandle</code></A> structure allocated with the <code>THPAudioCreateHandle</code> function. 44</p> 45 46<h2>See Also</h2> 47<p class="reference"> 48<A href="THPAudioHandle.html">THPAudioHandle</A>, 49<A href="../thpcore/THPMalloc.html">THPMalloc</A>, 50<A href="THPAudioFreeHandle.html">THPAudioFreeHandle</A> 51</p> 52 53<h2>Revision History</h2> 54<P> 552006/03/01 Initial version.<br> 56</P> 57 58<hr><p>CONFIDENTIAL</p></body> 59</html>