THPAudioCreateHandle

Syntax

#include <win32/thpaudio.h>

THPAudioHandle* THPAudioCreateHandle(char* fileName, f32 framerate);

Arguments

fileName File name of the wav file to convert.
framerate THP movie data frame rate

Return Values

Returns the pointer to the THPAudioHandle structure if successful, and NULL otherwise.

Description

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.

See Also

THPAudioHandle, THPMalloc, THPAudioFreeHandle

Revision History

2006/03/01 Initial version.


CONFIDENTIAL