RetroArch
|
#include <string.h>
#include <string/stdstring.h>
#include <features/features_cpu.h>
#include <file/config_file_userdata.h>
#include <audio/audio_resampler.h>
Functions | |
static int | find_resampler_driver_index (const char *ident) |
const void * | audio_resampler_driver_find_handle (int idx) |
const char * | audio_resampler_driver_find_ident (int idx) |
static const retro_resampler_t * | find_resampler_driver (const char *ident) |
static bool | resampler_append_plugs (void **re, const retro_resampler_t **backend, enum resampler_quality quality, double bw_ratio) |
bool | retro_resampler_realloc (void **re, const retro_resampler_t **backend, const char *ident, enum resampler_quality quality, double bw_ratio) |
Variables | |
static const retro_resampler_t * | resampler_drivers [] |
static const struct resampler_config | resampler_config |
audio_resampler_driver_find_handle: : index of driver to get handle to.
Returns: handle to audio resampler driver at index. Can be NULL if nothing found.
const char* audio_resampler_driver_find_ident | ( | int | idx | ) |
audio_resampler_driver_find_ident: : index of driver to get handle to.
Returns: Human-readable identifier of audio resampler driver at index. Can be NULL if nothing found.
|
static |
find_resampler_driver: : Identifier of resampler driver to find.
Finds resampler by name.
Returns: resampler driver if resampler driver was found, otherwise NULL.
|
static |
find_resampler_driver_index: : Identifier of resampler driver to find.
Finds resampler driver index by name.
Returns: resampler driver index if resampler driver was found, otherwise -1.
|
static |
resampler_append_plugs: : Resampler handle : Resampler backend that is about to be set. : Bandwidth ratio.
Initializes resampler driver based on queried CPU features.
Returns: true (1) if successfully initialized, otherwise false (0).
bool retro_resampler_realloc | ( | void ** | re, |
const retro_resampler_t ** | backend, | ||
const char * | ident, | ||
enum resampler_quality | quality, | ||
double | bw_ratio | ||
) |
retro_resampler_realloc: : Resampler handle : Resampler backend that is about to be set. : Identifier name for resampler we want. : Bandwidth ratio.
Reallocates resampler. Will free previous handle before allocating a new one. If ident is NULL, first resampler will be used.
Returns: true (1) if successful, otherwise false (0).
|
static |
|
static |