#include <win32/thpaudio.h>s32 THPAudioWriteFrame(THPAudioHandle* handle, FILE* output, s32 flag);handle |
Pointer to a THPAudioHandle structure. |
output |
File pointer to the output file. |
flag |
Final frame flag. |
TRUE if successful, FALSE otherwise.
This function gets the audio data of the current frame from the WAV file associated with handle. Subsequently, this function encodes the acquired audio data using ADPCM and outputs to output.
This function determines the current frame when it was invoked with the currentFrameNumber member of the THPAudioHandle structure. currentFrameNumber is initialized by the THPAudioCreateHandle function and is updated each time this (THPAudioWriteFrame) function is called.
flag is normally set to zero. Set to one if outputting the final frame of the audio data.
THPAudioCreateHandle, THPAudioHandle
03/01/2006 Initial version.