RetroArch
Macros | Functions | Variables
audioio.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <errno.h>
#include <sys/audioio.h>
#include "../audio_driver.h"
#include "../../verbosity.h"
Include dependency graph for audioio.c:

Macros

#define DEFAULT_DEV   "/dev/audio"
 

Functions

static voidaudioio_init (const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_out_rate)
 
static ssize_t audioio_write (void *data, const void *buf, size_t size)
 
static bool audioio_stop (void *data)
 
static bool audioio_start (void *data, bool is_shutdown)
 
static bool audioio_alive (void *data)
 
static void audioio_set_nonblock_state (void *data, bool state)
 
static void audioio_free (void *data)
 
static size_t audioio_buffer_size (void *data)
 
static size_t audioio_write_avail (void *data)
 
static bool audioio_use_float (void *data)
 

Variables

audio_driver_t audio_audioio
 

Macro Definition Documentation

◆ DEFAULT_DEV

#define DEFAULT_DEV   "/dev/audio"

Function Documentation

◆ audioio_alive()

static bool audioio_alive ( void data)
static

◆ audioio_buffer_size()

static size_t audioio_buffer_size ( void data)
static
Here is the caller graph for this function:

◆ audioio_free()

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

◆ audioio_init()

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

◆ audioio_set_nonblock_state()

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

◆ audioio_start()

static bool audioio_start ( void data,
bool  is_shutdown 
)
static

◆ audioio_stop()

static bool audioio_stop ( void data)
static

◆ audioio_use_float()

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

◆ audioio_write()

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

◆ audioio_write_avail()

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

Variable Documentation

◆ audio_audioio

audio_driver_t audio_audioio
Initial value:
= {
"audioio",
}
static bool audioio_stop(void *data)
Definition: audioio.c:102
static size_t audioio_buffer_size(void *data)
Definition: audioio.c:168
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static bool audioio_start(void *data, bool is_shutdown)
Definition: audioio.c:118
static bool audioio_use_float(void *data)
Definition: audioio.c:184
static ssize_t audioio_write(void *data, const void *buf, size_t size)
Definition: audioio.c:83
static bool audioio_alive(void *data)
Definition: audioio.c:134
static void audioio_set_nonblock_state(void *data, bool state)
Definition: audioio.c:145
static void * audioio_init(const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_out_rate)
Definition: audioio.c:35
static size_t audioio_write_avail(void *data)
Definition: audioio.c:179
static void audioio_free(void *data)
Definition: audioio.c:158