RetroArch
Classes | Macros | Functions | Variables
ps3_audio.c File Reference
#include <stdlib.h>
#include <string.h>
#include <queues/fifo_queue.h>
#include "../audio_driver.h"
#include "../../defines/ps3_defines.h"
Include dependency graph for ps3_audio.c:

Classes

struct  ps3_audio_t
 

Macros

#define AUDIO_BLOCKS   8
 
#define AUDIO_CHANNELS   2
 

Functions

static void event_loop (uint64_t data)
 
static voidps3_audio_init (const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
 
static ssize_t ps3_audio_write (void *data, const void *buf, size_t size)
 
static bool ps3_audio_stop (void *data)
 
static bool ps3_audio_start (void *data, bool is_shutdown)
 
static bool ps3_audio_alive (void *data)
 
static void ps3_audio_set_nonblock_state (void *data, bool toggle)
 
static void ps3_audio_free (void *data)
 
static bool ps3_audio_use_float (void *data)
 
static size_t ps3_audio_write_avail (void *data)
 

Variables

audio_driver_t audio_ps3
 

Macro Definition Documentation

◆ AUDIO_BLOCKS

#define AUDIO_BLOCKS   8

◆ AUDIO_CHANNELS

#define AUDIO_CHANNELS   2

Function Documentation

◆ event_loop()

static void event_loop ( uint64_t  data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ps3_audio_alive()

static bool ps3_audio_alive ( void data)
static

◆ ps3_audio_free()

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

◆ ps3_audio_init()

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

◆ ps3_audio_set_nonblock_state()

static void ps3_audio_set_nonblock_state ( void data,
bool  toggle 
)
static

◆ ps3_audio_start()

static bool ps3_audio_start ( void data,
bool  is_shutdown 
)
static
Here is the caller graph for this function:

◆ ps3_audio_stop()

static bool ps3_audio_stop ( void data)
static
Here is the caller graph for this function:

◆ ps3_audio_use_float()

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

◆ ps3_audio_write()

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

◆ ps3_audio_write_avail()

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

Variable Documentation

◆ audio_ps3

audio_driver_t audio_ps3
Initial value:
= {
"ps3",
}
static bool ps3_audio_start(void *data, bool is_shutdown)
Definition: ps3_audio.c:180
static bool ps3_audio_alive(void *data)
Definition: ps3_audio.c:191
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void ps3_audio_free(void *data)
Definition: ps3_audio.c:206
static size_t ps3_audio_write_avail(void *data)
Definition: ps3_audio.c:233
static ssize_t ps3_audio_write(void *data, const void *buf, size_t size)
Definition: ps3_audio.c:149
static bool ps3_audio_stop(void *data)
Definition: ps3_audio.c:169
static void ps3_audio_set_nonblock_state(void *data, bool toggle)
Definition: ps3_audio.c:199
static bool ps3_audio_use_float(void *data)
Definition: ps3_audio.c:227
static void * ps3_audio_init(const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
Definition: ps3_audio.c:79