RetroArch
Classes | Macros | Typedefs | Functions | Variables
openal.c File Reference
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <AL/al.h>
#include <AL/alc.h>
#include <retro_miscellaneous.h>
#include <retro_timers.h>
#include "../audio_driver.h"
#include "../../verbosity.h"
Include dependency graph for openal.c:

Classes

struct  al
 

Macros

#define BUFSIZE   1024
 

Typedefs

typedef struct al al_t
 

Functions

static void al_free (void *data)
 
static voidal_init (const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
 
static bool al_unqueue_buffers (al_t *al)
 
static bool al_get_buffer (al_t *al, ALuint *buffer)
 
static size_t al_fill_internal_buf (al_t *al, const void *buf, size_t size)
 
static ssize_t al_write (void *data, const void *buf_, size_t size)
 
static bool al_stop (void *data)
 
static bool al_alive (void *data)
 
static void al_set_nonblock_state (void *data, bool state)
 
static bool al_start (void *data, bool is_shutdown)
 
static size_t al_write_avail (void *data)
 
static size_t al_buffer_size (void *data)
 
static bool al_use_float (void *data)
 

Variables

audio_driver_t audio_openal
 

Macro Definition Documentation

◆ BUFSIZE

#define BUFSIZE   1024

Typedef Documentation

◆ al_t

typedef struct al al_t

Function Documentation

◆ al_alive()

static bool al_alive ( void data)
static

◆ al_buffer_size()

static size_t al_buffer_size ( void data)
static

◆ al_fill_internal_buf()

static size_t al_fill_internal_buf ( al_t al,
const void buf,
size_t  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ al_free()

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

◆ al_get_buffer()

static bool al_get_buffer ( al_t al,
ALuint *  buffer 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ al_init()

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

◆ al_set_nonblock_state()

static void al_set_nonblock_state ( void data,
bool  state 
)
static

◆ al_start()

static bool al_start ( void data,
bool  is_shutdown 
)
static

◆ al_stop()

static bool al_stop ( void data)
static

◆ al_unqueue_buffers()

static bool al_unqueue_buffers ( al_t al)
static
Here is the caller graph for this function:

◆ al_use_float()

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

◆ al_write()

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

◆ al_write_avail()

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

Variable Documentation

◆ audio_openal

audio_driver_t audio_openal
Initial value:
= {
"openal",
}
static ssize_t al_write(void *data, const void *buf_, size_t size)
Definition: openal.c:177
static bool al_stop(void *data)
Definition: openal.c:216
static bool al_alive(void *data)
Definition: openal.c:224
static size_t al_write_avail(void *data)
Definition: openal.c:247
static void * al_init(const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
Definition: openal.c:85
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static size_t al_buffer_size(void *data)
Definition: openal.c:254
static void al_free(void *data)
Definition: openal.c:61
static bool al_use_float(void *data)
Definition: openal.c:260
static bool al_start(void *data, bool is_shutdown)
Definition: openal.c:239
static void al_set_nonblock_state(void *data, bool state)
Definition: openal.c:232