RetroArch
Classes | Macros | Functions | Variables
xenon360_audio.c File Reference
#include <stdlib.h>
#include <boolean.h>
#include <xenon_sound/sound.h>
#include <retro_inline.h>
#include "../audio_driver.h"
Include dependency graph for xenon360_audio.c:

Classes

struct  xenon_audio_t
 

Macros

#define SOUND_FREQUENCY   48000
 
#define MAX_BUFFER   2048
 

Functions

static voidxenon360_audio_init (const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
 
static INLINE uint32_t bswap_32 (uint32_t val)
 
static ssize_t xenon360_audio_write (void *data, const void *buf, size_t size)
 
static bool xenon360_audio_stop (void *data)
 
static bool xenon360_audio_alive (void *data)
 
static void xenon360_audio_set_nonblock_state (void *data, bool state)
 
static bool xenon360_audio_start (void *data, bool is_shutdown)
 
static void xenon360_audio_free (void *data)
 
static bool xenon360_use_float (void *data)
 
static size_t xenon360_write_avail (void *data)
 

Variables

audio_driver_t audio_xenon360
 

Macro Definition Documentation

◆ MAX_BUFFER

#define MAX_BUFFER   2048

◆ SOUND_FREQUENCY

#define SOUND_FREQUENCY   48000

Function Documentation

◆ bswap_32()

static INLINE uint32_t bswap_32 ( uint32_t  val)
static
Here is the caller graph for this function:

◆ xenon360_audio_alive()

static bool xenon360_audio_alive ( void data)
static

◆ xenon360_audio_free()

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

◆ xenon360_audio_init()

static void* xenon360_audio_init ( const char *  device,
unsigned  rate,
unsigned  latency,
unsigned  block_frames,
unsigned *  new_rate 
)
static

◆ xenon360_audio_set_nonblock_state()

static void xenon360_audio_set_nonblock_state ( void data,
bool  state 
)
static

◆ xenon360_audio_start()

static bool xenon360_audio_start ( void data,
bool  is_shutdown 
)
static

◆ xenon360_audio_stop()

static bool xenon360_audio_stop ( void data)
static

◆ xenon360_audio_write()

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

◆ xenon360_use_float()

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

◆ xenon360_write_avail()

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

Variable Documentation

◆ audio_xenon360

audio_driver_t audio_xenon360
Initial value:
= {
"xenon360",
}
static bool xenon360_audio_stop(void *data)
Definition: xenon360_audio.c:93
static size_t xenon360_write_avail(void *data)
Definition: xenon360_audio.c:134
static bool xenon360_audio_alive(void *data)
Definition: xenon360_audio.c:100
static void xenon360_audio_free(void *data)
Definition: xenon360_audio.c:122
static ssize_t xenon360_audio_write(void *data, const void *buf, size_t size)
Definition: xenon360_audio.c:60
static bool xenon360_audio_start(void *data, bool is_shutdown)
Definition: xenon360_audio.c:115
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void * xenon360_audio_init(const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
Definition: xenon360_audio.c:36
static bool xenon360_use_float(void *data)
Definition: xenon360_audio.c:128
static void xenon360_audio_set_nonblock_state(void *data, bool state)
Definition: xenon360_audio.c:108