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

Classes

struct  audio_thread
 

Typedefs

typedef struct audio_thread audio_thread_t
 

Functions

static void audio_thread_loop (void *data)
 
static void audio_thread_block (audio_thread_t *thr)
 
static void audio_thread_unblock (audio_thread_t *thr)
 
static void audio_thread_free (void *data)
 
static bool audio_thread_alive (void *data)
 
static bool audio_thread_stop (void *data)
 
static bool audio_thread_start (void *data, bool is_shutdown)
 
static void audio_thread_set_nonblock_state (void *data, bool state)
 
static bool audio_thread_use_float (void *data)
 
static ssize_t audio_thread_write (void *data, const void *buf, size_t size)
 
bool audio_init_thread (const audio_driver_t **out_driver, void **out_data, const char *device, unsigned audio_out_rate, unsigned *new_rate, unsigned latency, unsigned block_frames, const audio_driver_t *drv)
 

Variables

static const audio_driver_t audio_thread
 

Typedef Documentation

◆ audio_thread_t

typedef struct audio_thread audio_thread_t

Function Documentation

◆ audio_init_thread()

bool audio_init_thread ( const audio_driver_t **  out_driver,
void **  out_data,
const char *  device,
unsigned  audio_out_rate,
unsigned *  new_rate,
unsigned  latency,
unsigned  block_frames,
const audio_driver_t drv 
)

audio_init_thread: : output driver : output audio data : audio device (optional) : output audio rate : audio latency : audio driver

Starts a audio driver in a new thread. Access to audio driver will be mediated through this driver. This driver interfaces with audio callback and is only used in that case.

Returns: true (1) if successful, otherwise false (0).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ audio_thread_alive()

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

◆ audio_thread_block()

static void audio_thread_block ( audio_thread_t thr)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ audio_thread_free()

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

◆ audio_thread_loop()

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

◆ audio_thread_set_nonblock_state()

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

◆ audio_thread_start()

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

◆ audio_thread_stop()

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

◆ audio_thread_unblock()

static void audio_thread_unblock ( audio_thread_t thr)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ audio_thread_use_float()

static bool audio_thread_use_float ( void data)
static

◆ audio_thread_write()

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

Variable Documentation

◆ audio_thread

Initial value:
= {
"audio-thread",
NULL,
}
static void audio_thread_set_nonblock_state(void *data, bool state)
Definition: audio_thread_wrapper.c:217
static void audio_thread_free(void *data)
Definition: audio_thread_wrapper.c:146
static bool audio_thread_alive(void *data)
Definition: audio_thread_wrapper.c:171
static bool audio_thread_stop(void *data)
Definition: audio_thread_wrapper.c:186
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static bool audio_thread_use_float(void *data)
Definition: audio_thread_wrapper.c:223
static ssize_t audio_thread_write(void *data, const void *buf, size_t size)
Definition: audio_thread_wrapper.c:231
static bool audio_thread_start(void *data, bool is_shutdown)
Definition: audio_thread_wrapper.c:201