RetroArch
|
#include <3ds.h>
#include <string.h>
#include <malloc.h>
#include <retro_miscellaneous.h>
#include <retro_timers.h>
#include "../audio_driver.h"
Classes | |
struct | ctr_csnd_audio_t |
Macros | |
#define | CTR_CSND_AUDIO_COUNT (1u << 11u) |
#define | CTR_CSND_AUDIO_COUNT_MASK (CTR_CSND_AUDIO_COUNT - 1u) |
#define | CTR_CSND_AUDIO_SIZE (CTR_CSND_AUDIO_COUNT * sizeof(int16_t)) |
#define | CTR_CSND_AUDIO_SIZE_MASK (CTR_CSND_AUDIO_SIZE - 1u) |
#define | CTR_CSND_AUDIO_RATE 32730 |
#define | CTR_CSND_TICKS_PER_SAMPLE 2048 |
#define | CTR_CSND_CPU_TICKS_PER_SAMPLE (CTR_CSND_TICKS_PER_SAMPLE * 4) |
Functions | |
static void | ctr_csnd_audio_update_playpos (ctr_csnd_audio_t *ctr) |
Result | csndPlaySound_custom (int chn, u32 flags, float vol, float pan, void *data0, void *data1, u32 size) |
static void * | ctr_csnd_audio_init (const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate) |
static void | ctr_csnd_audio_free (void *data) |
static ssize_t | ctr_csnd_audio_write (void *data, const void *buf, size_t size) |
static bool | ctr_csnd_audio_stop (void *data) |
static bool | ctr_csnd_audio_alive (void *data) |
static bool | ctr_csnd_audio_start (void *data, bool is_shutdown) |
static void | ctr_csnd_audio_set_nonblock_state (void *data, bool state) |
static bool | ctr_csnd_audio_use_float (void *data) |
static size_t | ctr_csnd_audio_write_avail (void *data) |
static size_t | ctr_csnd_audio_buffer_size (void *data) |
Variables | |
audio_driver_t | audio_ctr_csnd |
#define CTR_CSND_AUDIO_COUNT (1u << 11u) |
#define CTR_CSND_AUDIO_COUNT_MASK (CTR_CSND_AUDIO_COUNT - 1u) |
#define CTR_CSND_AUDIO_RATE 32730 |
#define CTR_CSND_AUDIO_SIZE (CTR_CSND_AUDIO_COUNT * sizeof(int16_t)) |
#define CTR_CSND_AUDIO_SIZE_MASK (CTR_CSND_AUDIO_SIZE - 1u) |
#define CTR_CSND_CPU_TICKS_PER_SAMPLE (CTR_CSND_TICKS_PER_SAMPLE * 4) |
#define CTR_CSND_TICKS_PER_SAMPLE 2048 |
Result csndPlaySound_custom | ( | int | chn, |
u32 | flags, | ||
float | vol, | ||
float | pan, | ||
void * | data0, | ||
void * | data1, | ||
u32 | size | ||
) |
|
static |
|
static |
|
static |
|
static |
audio_driver_t audio_ctr_csnd |