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>THPAudioHandle</title>
8</head>
9
10<body>
11
12<h1>THPAudioHandle</h1>
13
14<h2>Syntax</h2>
15<dl><dd><pre class="construction">
16#include &lt;win32/thpaudio.h&gt;
17
18typedef struct
19{
20    THPAudioFileInfo           audioInfo;
21    u32                        restEncodedSample;
22    u32                        currentFrameNumber;
23    f64                        frameRate;
24    s16*                       leftDecodedPtr;
25    s16*                       rightDecodedPtr;
26    u8*                        leftADPCMPtr;
27    u8*                        rightADPCMPtr;
28    ADPCMINFO                  leftADPCMInfo;
29    ADPCMINFO                  rightADPCMInfo;
30    THPAudioRecordHeader       recordHeader;
31    s16                        leftSampleBuffer  [THP_SAMPLE_BUFFER_SIZE];
32    s16                        rightSampleBuffer [THP_SAMPLE_BUFFER_SIZE];
33    s16                        leftDecodedBuffer [THP_SAMPLE_BUFFER_SIZE];
34    s16                        rightDecodedBuffer[THP_SAMPLE_BUFFER_SIZE];
35    u8                         leftADPCMBuffer   [THP_ADPCM_BUFFER_SIZE];
36    u8                         rightADPCMBuffer  [THP_ADPCM_BUFFER_SIZE];
37    u32                        readSample;
38} THPAudioHandle;
39</pre></dd></dl>
40
41<h2>Description</h2>
42<p>
43The <code>THPAudioHandle</code> structure is allocated and initialized when the <A href="THPAudioCreateHandle.html"><code>THPAudioCreateHandle</code></A> function is called.
44</p>
45<p>
46It is not necessary to directly manipulate individual members of the <code>THPAudioHandle</code> structure.
47</p>
48<p>
49In some cases, you may need to reference the members of <SPAN class="argument">audioInfo</SPAN> (the <A href="THPAudioFileInfo.html"><code>THPAudioFileInfo</code></A> structure).
50</p>
51
52<h2>See Also</h2>
53<p class="reference">
54<A href="THPAudioCreateHandle.html">THPAudioCreateHandle</A>,
55<A href="THPAudioFileInfo.html">THPAudioFileInfo</A>
56</p>
57
58<h2>Revision History</h2>
59<P>
602006/12/21 Deleted <SPAN class="argument">resampleFlag</SPAN>. Deleted <SPAN class="argument">resampleParameter</SPAN>. Added <SPAN class="argument">readSample</SPAN>. Deleted description regarding playback frequency.<br>2006/03/01 Initial version.<br>
61</P>
62
63<hr><p>CONFIDENTIAL</p></body>
64</html>