Classes | Macros | Functions
porcupine/demo/c/dr_libs/tests/flac/dr_flac_common.c File Reference
#include "../../dr_flac.h"
#include <FLAC/stream_decoder.h>
#include "../common/dr_common.c"
Include dependency graph for porcupine/demo/c/dr_libs/tests/flac/dr_flac_common.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  libflac
 

Macros

#define DR_FLAC_IMPLEMENTATION
 

Functions

static void libflac__error_callback (const FLAC__StreamDecoder *pStreamDecoder, FLAC__StreamDecoderErrorStatus status, void *client_data)
 
static FLAC__StreamDecoderLengthStatus libflac__length_callback (const FLAC__StreamDecoder *pStreamDecoder, FLAC__uint64 *stream_length, void *client_data)
 
static void libflac__metadata_callback (const FLAC__StreamDecoder *pStreamDecoder, const FLAC__StreamMetadata *metadata, void *client_data)
 
static FLAC__StreamDecoderReadStatus libflac__read_callback (const FLAC__StreamDecoder *pStreamDecoder, FLAC__byte buffer[], size_t *bytes, void *client_data)
 
static FLAC__StreamDecoderWriteStatus libflac__write_callback (const FLAC__StreamDecoder *pStreamDecoder, const FLAC__Frame *frame, const FLAC__int32 *const buffer[], void *client_data)
 
drflac_result libflac_init_file (const char *pFilePath, libflac *pDecoder)
 
drflac_uint64 libflac_read_pcm_frames_f32 (libflac *pDecoder, drflac_uint64 framesToRead, float *pBufferOut)
 
drflac_uint64 libflac_read_pcm_frames_s16 (libflac *pDecoder, drflac_uint64 framesToRead, drflac_int16 *pBufferOut)
 
drflac_uint64 libflac_read_pcm_frames_s32 (libflac *pDecoder, drflac_uint64 framesToRead, drflac_int32 *pBufferOut)
 
drflac_bool32 libflac_seek_to_pcm_frame (libflac *pDecoder, drflac_uint64 targetPCMFrameIndex)
 
void libflac_uninit (libflac *pDecoder)
 
void print_cpu_caps ()
 

Macro Definition Documentation

◆ DR_FLAC_IMPLEMENTATION

#define DR_FLAC_IMPLEMENTATION

Function Documentation

◆ libflac__error_callback()

static void libflac__error_callback ( const FLAC__StreamDecoder *  pStreamDecoder,
FLAC__StreamDecoderErrorStatus  status,
void *  client_data 
)
static

◆ libflac__length_callback()

static FLAC__StreamDecoderLengthStatus libflac__length_callback ( const FLAC__StreamDecoder *  pStreamDecoder,
FLAC__uint64 *  stream_length,
void *  client_data 
)
static

◆ libflac__metadata_callback()

static void libflac__metadata_callback ( const FLAC__StreamDecoder *  pStreamDecoder,
const FLAC__StreamMetadata *  metadata,
void *  client_data 
)
static

◆ libflac__read_callback()

static FLAC__StreamDecoderReadStatus libflac__read_callback ( const FLAC__StreamDecoder *  pStreamDecoder,
FLAC__byte  buffer[],
size_t *  bytes,
void *  client_data 
)
static

◆ libflac__write_callback()

static FLAC__StreamDecoderWriteStatus libflac__write_callback ( const FLAC__StreamDecoder *  pStreamDecoder,
const FLAC__Frame *  frame,
const FLAC__int32 *const  buffer[],
void *  client_data 
)
static

◆ libflac_init_file()

drflac_result libflac_init_file ( const char *  pFilePath,
libflac pDecoder 
)

◆ libflac_read_pcm_frames_f32()

drflac_uint64 libflac_read_pcm_frames_f32 ( libflac pDecoder,
drflac_uint64  framesToRead,
float *  pBufferOut 
)

◆ libflac_read_pcm_frames_s16()

drflac_uint64 libflac_read_pcm_frames_s16 ( libflac pDecoder,
drflac_uint64  framesToRead,
drflac_int16 pBufferOut 
)

◆ libflac_read_pcm_frames_s32()

drflac_uint64 libflac_read_pcm_frames_s32 ( libflac pDecoder,
drflac_uint64  framesToRead,
drflac_int32 pBufferOut 
)

◆ libflac_seek_to_pcm_frame()

drflac_bool32 libflac_seek_to_pcm_frame ( libflac pDecoder,
drflac_uint64  targetPCMFrameIndex 
)

◆ libflac_uninit()

void libflac_uninit ( libflac pDecoder)

◆ print_cpu_caps()

void print_cpu_caps ( )


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:57