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>THPAudioHandle</title> 7</head> 8 9<body> 10 11<h1>THPAudioHandle</h1> 12 13<h2>C Specification</h2> 14 15<dl> 16 <dd><pre><code>#include <win32/thpaudio.h></code></pre></dd> 17 <dd><pre><code>typedef struct 18{ 19 THPAudioFileInfo audioInfo; 20 u32 restEncodedSample; 21 u32 currentFrameNumber; 22 f64 frameRate; 23 s16* leftDecodedPtr; 24 s16* rightDecodedPtr; 25 u8* leftADPCMPtr; 26 u8* rightADPCMPtr; 27 ADPCMINFO leftADPCMInfo; 28 ADPCMINFO rightADPCMInfo; 29 THPAudioRecordHeader recordHeader; 30 s16 leftSampleBuffer [THP_SAMPLE_BUFFER_SIZE]; 31 s16 rightSampleBuffer [THP_SAMPLE_BUFFER_SIZE]; 32 s16 leftDecodedBuffer [THP_SAMPLE_BUFFER_SIZE]; 33 s16 rightDecodedBuffer[THP_SAMPLE_BUFFER_SIZE]; 34 u8 leftADPCMBuffer [THP_ADPCM_BUFFER_SIZE]; 35 u8 rightADPCMBuffer [THP_ADPCM_BUFFER_SIZE]; 36 u32 readSample; 37} THPAudioHandle;</code></pre></dd> 38 39</dl> 40 41<h2>Description</h2> 42<p> 43The <code>THPAudioHandle</code> structure is allocated and initialized when <A href="THPAudioCreateHandle.html"><code>THPAudioCreateHandle</code></A> 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 the <code>audioInfo</code>(<A href="THPAudioFileInfo.html"><code>THPAudioFileInfo</code> structure</A>). 50</p> 51 52<h2>See Also</h2> 53<p> 54<A href="THPAudioCreateHandle.html"><code>THPAudioCreateHandle</code></A>, <A href="THPAudioFileInfo.html"><code>THPAudioFileInfo</code></A> 55</p> 56 57<h2>Revision History</h2> 58<P> 592006/12/21 Deleted resampleFlag. Deleted resampleParameter. Added readsample. Deleted description regarding playback frequency.<br>2006/03/01 Initial version. 60</P> 61<hr> 62<P>CONFIDENTIAL</p> 63</BODY> 64</HTML>