RetroArch
|
#include <stdlib.h>
#include <string.h>
#include <queues/fifo_queue.h>
#include <rthreads/rthreads.h>
#include "audio_thread_wrapper.h"
#include "../verbosity.h"
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 struct audio_thread audio_thread_t |
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).
|
static |
|
static |
|
static |