RetroArch
Classes | Functions | Variables
gx_audio.c File Reference
#include <stdlib.h>
#include <string.h>
#include <cafe/ai.h>
#include <boolean.h>
#include <retro_inline.h>
#include "../audio_driver.h"
#include "../../defines/gx_defines.h"
Include dependency graph for gx_audio.c:

Classes

struct  gx_audio_t
 

Functions

static void dma_callback (void)
 
static voidgx_audio_init (const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
 
static INLINE void copy_swapped (uint32_t *restrict dst, const uint32_t *restrict src, size_t size)
 
static ssize_t gx_audio_write (void *data, const void *buf_, size_t size)
 
static bool gx_audio_stop (void *data)
 
static void gx_audio_set_nonblock_state (void *data, bool state)
 
static bool gx_audio_start (void *data, bool is_shutdown)
 
static bool gx_audio_alive (void *data)
 
static void gx_audio_free (void *data)
 
static size_t gx_audio_write_avail (void *data)
 
static size_t gx_audio_buffer_size (void *data)
 
static bool gx_audio_use_float (void *data)
 

Variables

static volatile gx_audio_tgx_audio_data = NULL
 
static volatile bool stop_audio = false
 
audio_driver_t audio_gx
 

Function Documentation

◆ copy_swapped()

static INLINE void copy_swapped ( uint32_t *restrict  dst,
const uint32_t *restrict  src,
size_t  size 
)
static
Here is the caller graph for this function:

◆ dma_callback()

static void dma_callback ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gx_audio_alive()

static bool gx_audio_alive ( void data)
static

◆ gx_audio_buffer_size()

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

◆ gx_audio_free()

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

◆ gx_audio_init()

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

◆ gx_audio_set_nonblock_state()

static void gx_audio_set_nonblock_state ( void data,
bool  state 
)
static

◆ gx_audio_start()

static bool gx_audio_start ( void data,
bool  is_shutdown 
)
static

◆ gx_audio_stop()

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

◆ gx_audio_use_float()

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

◆ gx_audio_write()

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

◆ gx_audio_write_avail()

static size_t gx_audio_write_avail ( void data)
static

Variable Documentation

◆ audio_gx

audio_driver_t audio_gx
Initial value:
= {
"gx",
}
static void gx_audio_free(void *data)
Definition: gx_audio.c:191
static ssize_t gx_audio_write(void *data, const void *buf_, size_t size)
Definition: gx_audio.c:115
static size_t gx_audio_write_avail(void *data)
Definition: gx_audio.c:205
static bool gx_audio_start(void *data, bool is_shutdown)
Definition: gx_audio.c:171
static bool gx_audio_use_float(void *data)
Definition: gx_audio.c:218
static size_t gx_audio_buffer_size(void *data)
Definition: gx_audio.c:212
static void gx_audio_set_nonblock_state(void *data, bool state)
Definition: gx_audio.c:163
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void * gx_audio_init(const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
Definition: gx_audio.c:67
static bool gx_audio_alive(void *data)
Definition: gx_audio.c:183
static bool gx_audio_stop(void *data)
Definition: gx_audio.c:149

◆ gx_audio_data

volatile gx_audio_t* gx_audio_data = NULL
static

◆ stop_audio

volatile bool stop_audio = false
static