RetroArch
|
#include <string.h>
#include <malloc.h>
#include <stdint.h>
#include <wiiu/os.h>
#include <wiiu/ax.h>
#include "wiiu/wiiu_dbg.h"
#include "wiiu/system/memory.h"
#include "audio/audio_driver.h"
Classes | |
struct | ax_audio_t |
Macros | |
#define | AX_AUDIO_COUNT 3072 |
#define | AX_AUDIO_SIZE (AX_AUDIO_COUNT << 1u) |
#define | AX_AUDIO_SAMPLE_COUNT 144 /* 3ms */ |
#define | AX_AUDIO_SAMPLE_MIN (AX_AUDIO_SAMPLE_COUNT * 3) /* 9ms */ |
#define | AX_AUDIO_SAMPLE_LOAD (AX_AUDIO_SAMPLE_COUNT * 10)/* 30ms */ |
#define | AX_AUDIO_MAX_FREE (AX_AUDIO_COUNT - (AX_AUDIO_SAMPLE_COUNT * 2)) |
#define | AX_AUDIO_RATE 48000 |
Functions | |
void | wiiu_ax_callback (void) |
void | AXRegisterFrameCallback (void *cb) |
static void * | ax_audio_init (const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate) |
static void | ax_audio_free (void *data) |
static bool | ax_audio_stop (void *data) |
static int | ax_audio_limit (int in) |
static bool | ax_audio_start (void *data, bool is_shutdown) |
static ssize_t | ax_audio_write (void *data, const void *buf, size_t size) |
static bool | ax_audio_alive (void *data) |
static void | ax_audio_set_nonblock_state (void *data, bool state) |
static bool | ax_audio_use_float (void *data) |
static size_t | ax_audio_write_avail (void *data) |
static size_t | ax_audio_buffer_size (void *data) |
Variables | |
static volatile ax_audio_t * | wiiu_cb_ax = NULL |
audio_driver_t | audio_ax |
#define AX_AUDIO_COUNT 3072 |
#define AX_AUDIO_MAX_FREE (AX_AUDIO_COUNT - (AX_AUDIO_SAMPLE_COUNT * 2)) |
#define AX_AUDIO_RATE 48000 |
#define AX_AUDIO_SAMPLE_COUNT 144 /* 3ms */ |
#define AX_AUDIO_SAMPLE_LOAD (AX_AUDIO_SAMPLE_COUNT * 10)/* 30ms */ |
#define AX_AUDIO_SAMPLE_MIN (AX_AUDIO_SAMPLE_COUNT * 3) /* 9ms */ |
#define AX_AUDIO_SIZE (AX_AUDIO_COUNT << 1u) |
|
static |
|
static |
|
static |
|
static |
audio_driver_t audio_ax |
|
static |