RetroArch
Macros | Functions | Variables
oss.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/soundcard.h>
#include <retro_endianness.h>
#include "../audio_driver.h"
#include "../../verbosity.h"
Include dependency graph for oss.c:

Macros

#define DEFAULT_OSS_DEV   "/dev/dsp"
 

Functions

static voidoss_init (const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_out_rate)
 
static ssize_t oss_write (void *data, const void *buf, size_t size)
 
static bool oss_stop (void *data)
 
static bool oss_start (void *data, bool is_shutdown)
 
static bool oss_alive (void *data)
 
static void oss_set_nonblock_state (void *data, bool state)
 
static void oss_free (void *data)
 
static size_t oss_write_avail (void *data)
 
static size_t oss_buffer_size (void *data)
 
static bool oss_use_float (void *data)
 

Variables

static bool oss_is_paused = false
 
audio_driver_t audio_oss
 

Macro Definition Documentation

◆ DEFAULT_OSS_DEV

#define DEFAULT_OSS_DEV   "/dev/dsp"

Function Documentation

◆ oss_alive()

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

◆ oss_buffer_size()

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

◆ oss_free()

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

◆ oss_init()

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

◆ oss_set_nonblock_state()

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

◆ oss_start()

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

◆ oss_stop()

static bool oss_stop ( void data)
static

◆ oss_use_float()

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

◆ oss_write()

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

◆ oss_write_avail()

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

Variable Documentation

◆ audio_oss

audio_driver_t audio_oss
Initial value:
= {
"oss",
}
static size_t oss_write_avail(void *data)
Definition: oss.c:167
static void * oss_init(const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_out_rate)
Definition: oss.c:47
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static bool oss_use_float(void *data)
Definition: oss.c:195
static void oss_set_nonblock_state(void *data, bool state)
Definition: oss.c:143
static size_t oss_buffer_size(void *data)
Definition: oss.c:181
static bool oss_start(void *data, bool is_shutdown)
Definition: oss.c:130
static bool oss_alive(void *data)
Definition: oss.c:137
static bool oss_stop(void *data)
Definition: oss.c:119
static void oss_free(void *data)
Definition: oss.c:156
static ssize_t oss_write(void *data, const void *buf, size_t size)
Definition: oss.c:100

◆ oss_is_paused

bool oss_is_paused = false
static