RetroArch
Functions
libchdr_flac.c File Reference
#include <assert.h>
#include <string.h>
#include <libchdr/flac.h>
#include <libchdr/minmax.h>
#include <retro_miscellaneous.h>
Include dependency graph for libchdr_flac.c:

Functions

static FLAC__StreamDecoderReadStatus flac_decoder_read_callback_static (const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data)
 
FLAC__StreamDecoderReadStatus flac_decoder_read_callback (void *client_data, FLAC__byte buffer[], size_t *bytes)
 
static void flac_decoder_metadata_callback_static (const FLAC__StreamDecoder *decoder, const FLAC__StreamMetadata *metadata, void *client_data)
 
static FLAC__StreamDecoderTellStatus flac_decoder_tell_callback_static (const FLAC__StreamDecoder *decoder, FLAC__uint64 *absolute_byte_offset, void *client_data)
 
static FLAC__StreamDecoderWriteStatus flac_decoder_write_callback_static (const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 *const buffer[], void *client_data)
 
FLAC__StreamDecoderWriteStatus flac_decoder_write_callback (void *client_data, const FLAC__Frame *frame, const FLAC__int32 *const buffer[])
 
static void flac_decoder_error_callback_static (const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data)
 
void flac_decoder_init (flac_decoder *decoder)
 
void flac_decoder_free (flac_decoder *decoder)
 
static int flac_decoder_internal_reset (flac_decoder *decoder)
 
int flac_decoder_reset (flac_decoder *decoder, uint32_t sample_rate, uint8_t num_channels, uint32_t block_size, const void *buffer, uint32_t length)
 
int flac_decoder_decode_interleaved (flac_decoder *decoder, int16_t *samples, uint32_t num_samples, int swap_endian)
 
uint32_t flac_decoder_finish (flac_decoder *decoder)
 

Function Documentation

◆ flac_decoder_decode_interleaved()

int flac_decoder_decode_interleaved ( flac_decoder decoder,
int16_t samples,
uint32_t  num_samples,
int  swap_endian 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flac_decoder_error_callback_static()

void flac_decoder_error_callback_static ( const FLAC__StreamDecoder decoder,
FLAC__StreamDecoderErrorStatus  status,
void client_data 
)
static
Here is the caller graph for this function:

◆ flac_decoder_finish()

uint32_t flac_decoder_finish ( flac_decoder decoder)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flac_decoder_free()

void flac_decoder_free ( flac_decoder decoder)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flac_decoder_init()

void flac_decoder_init ( flac_decoder decoder)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flac_decoder_internal_reset()

static int flac_decoder_internal_reset ( flac_decoder decoder)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flac_decoder_metadata_callback_static()

void flac_decoder_metadata_callback_static ( const FLAC__StreamDecoder decoder,
const FLAC__StreamMetadata metadata,
void client_data 
)
static
Here is the caller graph for this function:

◆ flac_decoder_read_callback()

FLAC__StreamDecoderReadStatus flac_decoder_read_callback ( void client_data,
FLAC__byte  buffer[],
size_t *  bytes 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flac_decoder_read_callback_static()

FLAC__StreamDecoderReadStatus flac_decoder_read_callback_static ( const FLAC__StreamDecoder decoder,
FLAC__byte  buffer[],
size_t *  bytes,
void client_data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flac_decoder_reset()

int flac_decoder_reset ( flac_decoder decoder,
uint32_t  sample_rate,
uint8_t  num_channels,
uint32_t  block_size,
const void buffer,
uint32_t  length 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flac_decoder_tell_callback_static()

FLAC__StreamDecoderTellStatus flac_decoder_tell_callback_static ( const FLAC__StreamDecoder decoder,
FLAC__uint64 absolute_byte_offset,
void client_data 
)
static
Here is the caller graph for this function:

◆ flac_decoder_write_callback()

FLAC__StreamDecoderWriteStatus flac_decoder_write_callback ( void client_data,
const FLAC__Frame frame,
const FLAC__int32 *const  buffer[] 
)
Here is the caller graph for this function:

◆ flac_decoder_write_callback_static()

FLAC__StreamDecoderWriteStatus flac_decoder_write_callback_static ( const FLAC__StreamDecoder decoder,
const FLAC__Frame frame,
const FLAC__int32 *const  buffer[],
void client_data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: