1.3.4.1.4 FLAC_DecodeSingleFrame Function
C
bool FLAC_DecodeSingleFrame(uint8_t *output);
Summary
A wrapper function on FLAC decoder library, this function tries to decode one FLAC frame and returns the decoded data.
Description
This function decodes an encoded frame and returns decoded data, thus provides an abstraction interface to use FLAC decode functions from library.
Precondition
FLAC_Initialize function must be called successfully before this function.
Parameters
output - output buffer pointer to hold decoded data.
Returns
This function returns a boolean value.
False - FLAC decoding failed, or end of file reached.
True - FLAC decoding succeeded.
Example
bool success = FLAC_DecodeSingleFrame(output, written);
Remarks
None