#include <win32/thpaudio.h> THPAudioHandle* THPAudioCreateHandle(char* fileName, f32 framerate);
| fileName | File name of the wav file to convert. |
|---|---|
| framerate | THP movie data frame rate |
Returns the pointer to the THPAudioHandle structure if successful, and NULL otherwise.
The THPAudioCreateHandle function internally allocates a THPAudioHandle structure using the THPMalloc function. Next, after opening the wav file specified by fileName, it gets the wav file information and stores it in the allocated THPAudioHandle structure.
When the conversion to THP audio data is complete, please use the THPAudioFreeHandle function to release the THPAudioHandle structure allocated with the THPAudioCreateHandle function.
THPAudioHandle, THPMalloc, THPAudioFreeHandle
2006/03/01 Initial version.
CONFIDENTIAL