RetroArch
Classes | Typedefs | Functions | Variables
rsound.c File Reference
#include <stdlib.h>
#include <boolean.h>
#include <queues/fifo_queue.h>
#include <rthreads/rthreads.h>
#include "../audio_driver.h"
#include "rsound.h"
Include dependency graph for rsound.c:

Classes

struct  rsd
 

Typedefs

typedef struct rsd rsd_t
 

Functions

static ssize_t rsound_audio_cb (void *data, size_t bytes, void *userdata)
 
static void err_cb (void *userdata)
 
static voidrs_init (const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
 
static ssize_t rs_write (void *data, const void *buf, size_t size)
 
static bool rs_stop (void *data)
 
static void rs_set_nonblock_state (void *data, bool state)
 
static bool rs_alive (void *data)
 
static bool rs_start (void *data, bool is_shutdown)
 
static void rs_free (void *data)
 
static size_t rs_write_avail (void *data)
 
static size_t rs_buffer_size (void *data)
 
static bool rs_use_float (void *data)
 

Variables

audio_driver_t audio_rsound
 

Typedef Documentation

◆ rsd_t

typedef struct rsd rsd_t

Function Documentation

◆ err_cb()

static void err_cb ( void userdata)
static
Here is the caller graph for this function:

◆ rs_alive()

static bool rs_alive ( void data)
static

◆ rs_buffer_size()

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

◆ rs_free()

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

◆ rs_init()

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

◆ rs_set_nonblock_state()

static void rs_set_nonblock_state ( void data,
bool  state 
)
static

◆ rs_start()

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

◆ rs_stop()

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

◆ rs_use_float()

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

◆ rs_write()

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

◆ rs_write_avail()

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

◆ rsound_audio_cb()

static ssize_t rsound_audio_cb ( void data,
size_t  bytes,
void userdata 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ audio_rsound

audio_driver_t audio_rsound
Initial value:
= {
"rsound",
}
static void rs_free(void *data)
Definition: rsound.c:190
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static bool rs_stop(void *data)
Definition: rsound.c:157
static size_t rs_write_avail(void *data)
Definition: rsound.c:204
static size_t rs_buffer_size(void *data)
Definition: rsound.c:217
static bool rs_use_float(void *data)
Definition: rsound.c:223
static ssize_t rs_write(void *data, const void *buf, size_t size)
Definition: rsound.c:105
static void * rs_init(const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
Definition: rsound.c:59
static bool rs_start(void *data, bool is_shutdown)
Definition: rsound.c:180
static void rs_set_nonblock_state(void *data, bool state)
Definition: rsound.c:166
static bool rs_alive(void *data)
Definition: rsound.c:172