THPAudioCreateHandle

C Specification

#include <win32/thpaudio.h>
THPAudioHandle* THPAudioCreateHandle(char* fileName, f32 framerate);

Arguments

fileName File name of the conversion source WAV file.
framerate Frame rate of the THP movie data.

Return Values

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

Description

This function internally allocates a THPAudioHandle structure using the THPMalloc function. After opening the WAV file specified by fileName, the function gets the WAV file information and sets this information in the allocated THPAudioHandle structure.

Be sure to use the THPAudioFreeHandle function to release the THPAudioHandle structure allocated with this function when the conversion to THP audio data completes.

See Also

THPAudioHandle, THPMalloc, THPAudioFreeHandle

Revision History

2006/03/01 Initial version.


CONFIDENTIAL