THPAudioWriteFrame

C Specification

#include <win32/thpaudio.h>
s32 THPAudioWriteFrame(THPAudioHandle* handle, FILE* output, s32 flag);

Arguments

handle Pointer to a THPAudioHandle structure.
output File pointer to the output file.
flag Final frame flag.

Return Values

TRUE if successful, FALSE otherwise.

Description

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.

See Also

THPAudioCreateHandle, THPAudioHandle

Revision History

03/01/2006 Initial version.