#include <win32/thpaudio.h>typedef struct
{
THPAudioFileInfo audioInfo;
u32 restEncodedSample;
u32 currentFrameNumber;
f64 frameRate;
s16* leftDecodedPtr;
s16* rightDecodedPtr;
u8* leftADPCMPtr;
u8* rightADPCMPtr;
ADPCMINFO leftADPCMInfo;
ADPCMINFO rightADPCMInfo;
THPAudioRecordHeader recordHeader;
s16 leftSampleBuffer [THP_SAMPLE_BUFFER_SIZE];
s16 rightSampleBuffer [THP_SAMPLE_BUFFER_SIZE];
s16 leftDecodedBuffer [THP_SAMPLE_BUFFER_SIZE];
s16 rightDecodedBuffer[THP_SAMPLE_BUFFER_SIZE];
u8 leftADPCMBuffer [THP_ADPCM_BUFFER_SIZE];
u8 rightADPCMBuffer [THP_ADPCM_BUFFER_SIZE];
u32 readSample;
} THPAudioHandle;
The THPAudioHandle structure is allocated and initialized when THPAudioCreateHandle is called.
It is not necessary to directly manipulate individual members of the THPAudioHandle structure.
In some cases, you may need to reference the members of the audioInfo(THPAudioFileInfo structure).
THPAudioCreateHandle, THPAudioFileInfo
2006/12/21 Deleted resampleFlag. Deleted resampleParameter. Added readsample. Deleted description regarding playback frequency.
2006/03/01 Initial version.
CONFIDENTIAL