RetroArch
Classes | Macros | Functions | Variables
ctr_dsp_audio.c File Reference
#include <3ds.h>
#include <string.h>
#include <malloc.h>
#include "../audio_driver.h"
#include "../../ctr/ctr_debug.h"
Include dependency graph for ctr_dsp_audio.c:

Classes

struct  ctr_dsp_audio_t
 

Macros

#define CTR_DSP_AUDIO_COUNT   (1u << 11u)
 
#define CTR_DSP_AUDIO_COUNT_MASK   (CTR_DSP_AUDIO_COUNT - 1u)
 
#define CTR_DSP_AUDIO_SIZE   (CTR_DSP_AUDIO_COUNT * sizeof(int16_t) * 2)
 
#define CTR_DSP_AUDIO_SIZE_MASK   (CTR_DSP_AUDIO_SIZE - 1u)
 

Functions

static voidctr_dsp_audio_init (const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
 
static void ctr_dsp_audio_free (void *data)
 
static ssize_t ctr_dsp_audio_write (void *data, const void *buf, size_t size)
 
static bool ctr_dsp_audio_stop (void *data)
 
static bool ctr_dsp_audio_alive (void *data)
 
static bool ctr_dsp_audio_start (void *data, bool is_shutdown)
 
static void ctr_dsp_audio_set_nonblock_state (void *data, bool state)
 
static bool ctr_dsp_audio_use_float (void *data)
 
static size_t ctr_dsp_audio_write_avail (void *data)
 
static size_t ctr_dsp_audio_buffer_size (void *data)
 

Variables

audio_driver_t audio_ctr_dsp
 

Macro Definition Documentation

◆ CTR_DSP_AUDIO_COUNT

#define CTR_DSP_AUDIO_COUNT   (1u << 11u)

◆ CTR_DSP_AUDIO_COUNT_MASK

#define CTR_DSP_AUDIO_COUNT_MASK   (CTR_DSP_AUDIO_COUNT - 1u)

◆ CTR_DSP_AUDIO_SIZE

#define CTR_DSP_AUDIO_SIZE   (CTR_DSP_AUDIO_COUNT * sizeof(int16_t) * 2)

◆ CTR_DSP_AUDIO_SIZE_MASK

#define CTR_DSP_AUDIO_SIZE_MASK   (CTR_DSP_AUDIO_SIZE - 1u)

Function Documentation

◆ ctr_dsp_audio_alive()

static bool ctr_dsp_audio_alive ( void data)
static

◆ ctr_dsp_audio_buffer_size()

static size_t ctr_dsp_audio_buffer_size ( void data)
static
Here is the call graph for this function:

◆ ctr_dsp_audio_free()

static void ctr_dsp_audio_free ( void data)
static
Here is the call graph for this function:

◆ ctr_dsp_audio_init()

static void* ctr_dsp_audio_init ( const char *  device,
unsigned  rate,
unsigned  latency,
unsigned  block_frames,
unsigned *  new_rate 
)
static
Here is the call graph for this function:

◆ ctr_dsp_audio_set_nonblock_state()

static void ctr_dsp_audio_set_nonblock_state ( void data,
bool  state 
)
static

◆ ctr_dsp_audio_start()

static bool ctr_dsp_audio_start ( void data,
bool  is_shutdown 
)
static

◆ ctr_dsp_audio_stop()

static bool ctr_dsp_audio_stop ( void data)
static

◆ ctr_dsp_audio_use_float()

static bool ctr_dsp_audio_use_float ( void data)
static
Here is the call graph for this function:

◆ ctr_dsp_audio_write()

static ssize_t ctr_dsp_audio_write ( void data,
const void buf,
size_t  size 
)
static
Here is the call graph for this function:

◆ ctr_dsp_audio_write_avail()

static size_t ctr_dsp_audio_write_avail ( void data)
static

Variable Documentation

◆ audio_ctr_dsp

audio_driver_t audio_ctr_dsp
Initial value:
= {
"dsp",
}
static ssize_t ctr_dsp_audio_write(void *data, const void *buf, size_t size)
Definition: ctr_dsp_audio.c:95
static size_t ctr_dsp_audio_write_avail(void *data)
Definition: ctr_dsp_audio.c:185
static bool ctr_dsp_audio_alive(void *data)
Definition: ctr_dsp_audio.c:151
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void ctr_dsp_audio_free(void *data)
Definition: ctr_dsp_audio.c:86
static bool ctr_dsp_audio_stop(void *data)
Definition: ctr_dsp_audio.c:141
static void * ctr_dsp_audio_init(const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
Definition: ctr_dsp_audio.c:38
static size_t ctr_dsp_audio_buffer_size(void *data)
Definition: ctr_dsp_audio.c:192
static bool ctr_dsp_audio_use_float(void *data)
Definition: ctr_dsp_audio.c:179
static bool ctr_dsp_audio_start(void *data, bool is_shutdown)
Definition: ctr_dsp_audio.c:157
static void ctr_dsp_audio_set_nonblock_state(void *data, bool state)
Definition: ctr_dsp_audio.c:172