RetroArch
Classes | Functions | Variables
pulse.c File Reference
#include <stdint.h>
#include <string.h>
#include <pulse/pulseaudio.h>
#include <boolean.h>
#include <retro_miscellaneous.h>
#include <retro_endianness.h>
#include "../audio_driver.h"
#include "../../verbosity.h"
Include dependency graph for pulse.c:

Classes

struct  pa_t
 

Functions

static void pulse_free (void *data)
 
static void stream_success_cb (pa_stream *s, int success, void *data)
 
static void context_state_cb (pa_context *c, void *data)
 
static void stream_state_cb (pa_stream *s, void *data)
 
static void stream_request_cb (pa_stream *s, size_t length, void *data)
 
static void stream_latency_update_cb (pa_stream *s, void *data)
 
static void underrun_update_cb (pa_stream *s, void *data)
 
static void buffer_attr_cb (pa_stream *s, void *data)
 
static voidpulse_init (const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
 
static ssize_t pulse_write (void *data, const void *buf_, size_t size)
 
static bool pulse_stop (void *data)
 
static bool pulse_alive (void *data)
 
static bool pulse_start (void *data, bool is_shutdown)
 
static void pulse_set_nonblock_state (void *data, bool state)
 
static bool pulse_use_float (void *data)
 
static size_t pulse_write_avail (void *data)
 
static size_t pulse_buffer_size (void *data)
 

Variables

audio_driver_t audio_pulse
 

Function Documentation

◆ buffer_attr_cb()

static void buffer_attr_cb ( pa_stream *  s,
void data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ context_state_cb()

static void context_state_cb ( pa_context *  c,
void data 
)
static
Here is the caller graph for this function:

◆ pulse_alive()

static bool pulse_alive ( void data)
static

◆ pulse_buffer_size()

static size_t pulse_buffer_size ( void data)
static

◆ pulse_free()

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

◆ pulse_init()

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

◆ pulse_set_nonblock_state()

static void pulse_set_nonblock_state ( void data,
bool  state 
)
static

◆ pulse_start()

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

◆ pulse_stop()

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

◆ pulse_use_float()

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

◆ pulse_write()

static ssize_t pulse_write ( void data,
const void buf_,
size_t  size 
)
static

◆ pulse_write_avail()

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

◆ stream_latency_update_cb()

static void stream_latency_update_cb ( pa_stream *  s,
void data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_request_cb()

static void stream_request_cb ( pa_stream *  s,
size_t  length,
void data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_state_cb()

static void stream_state_cb ( pa_stream *  s,
void data 
)
static
Here is the caller graph for this function:

◆ stream_success_cb()

static void stream_success_cb ( pa_stream *  s,
int  success,
void data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ underrun_update_cb()

static void underrun_update_cb ( pa_stream *  s,
void data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ audio_pulse

audio_driver_t audio_pulse
Initial value:
= {
"pulse",
}
static size_t pulse_write_avail(void *data)
Definition: pulse.c:325
static void pulse_set_nonblock_state(void *data, bool state)
Definition: pulse.c:312
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static bool pulse_use_float(void *data)
Definition: pulse.c:319
static bool pulse_alive(void *data)
Definition: pulse.c:286
static size_t pulse_buffer_size(void *data)
Definition: pulse.c:338
static ssize_t pulse_write(void *data, const void *buf_, size_t size)
Definition: pulse.c:240
static bool pulse_start(void *data, bool is_shutdown)
Definition: pulse.c:295
static void * pulse_init(const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
Definition: pulse.c:152
static void pulse_free(void *data)
Definition: pulse.c:40
static bool pulse_stop(void *data)
Definition: pulse.c:269