xine-lib 1.2.11
Data Structures | Macros | Typedefs | Functions | Variables
audio_esd_out.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <esd.h>
#include <signal.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <inttypes.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/audio_out.h>
#include <xine/metronom.h>

Data Structures

struct  esd_driver_s
 
struct  esd_class_t
 

Macros

#define AO_OUT_ESD_IFACE_VERSION   9
 
#define REBLOCK   1 /* reblock output to ESD_BUF_SIZE blks */
 
#define GAP_TOLERANCE   5000
 

Typedefs

typedef struct esd_driver_s esd_driver_t
 

Functions

static int ao_esd_open (ao_driver_t *this_gen, uint32_t bits, uint32_t rate, int mode)
 
static int ao_esd_num_channels (ao_driver_t *this_gen)
 
static int ao_esd_bytes_per_frame (ao_driver_t *this_gen)
 
static int ao_esd_delay (ao_driver_t *this_gen)
 
static int ao_esd_write (ao_driver_t *this_gen, int16_t *frame_buffer, uint32_t num_frames)
 
static void ao_esd_close (ao_driver_t *this_gen)
 
static uint32_t ao_esd_get_capabilities (ao_driver_t *this_gen)
 
static int ao_esd_get_gap_tolerance (ao_driver_t *this_gen)
 
static void ao_esd_exit (ao_driver_t *this_gen)
 
static int ao_esd_get_property (ao_driver_t *this_gen, int property)
 
static int ao_esd_set_property (ao_driver_t *this_gen, int property, int value)
 
static int ao_esd_ctrl (ao_driver_t *this_gen, int cmd,...)
 
static ao_driver_topen_plugin (audio_driver_class_t *class_gen, const void *data)
 
static void * init_class (xine_t *xine, const void *data)
 

Variables

static const ao_info_t ao_info_esd
 
const plugin_info_t xine_plugin_info[] EXPORTED
 

Macro Definition Documentation

◆ AO_OUT_ESD_IFACE_VERSION

#define AO_OUT_ESD_IFACE_VERSION   9

◆ GAP_TOLERANCE

#define GAP_TOLERANCE   5000

◆ REBLOCK

#define REBLOCK   1 /* reblock output to ESD_BUF_SIZE blks */

Typedef Documentation

◆ esd_driver_t

typedef struct esd_driver_s esd_driver_t

Function Documentation

◆ ao_esd_bytes_per_frame()

static int ao_esd_bytes_per_frame ( ao_driver_t this_gen)
static

Referenced by open_plugin().

◆ ao_esd_close()

static void ao_esd_close ( ao_driver_t this_gen)
static

Referenced by open_plugin().

◆ ao_esd_ctrl()

static int ao_esd_ctrl ( ao_driver_t this_gen,
int  cmd,
  ... 
)
static

◆ ao_esd_delay()

static int ao_esd_delay ( ao_driver_t this_gen)
static

References NULL.

Referenced by open_plugin().

◆ ao_esd_exit()

static void ao_esd_exit ( ao_driver_t this_gen)
static

Referenced by open_plugin().

◆ ao_esd_get_capabilities()

static uint32_t ao_esd_get_capabilities ( ao_driver_t this_gen)
static

Referenced by open_plugin().

◆ ao_esd_get_gap_tolerance()

static int ao_esd_get_gap_tolerance ( ao_driver_t this_gen)
static

References GAP_TOLERANCE.

Referenced by open_plugin().

◆ ao_esd_get_property()

static int ao_esd_get_property ( ao_driver_t this_gen,
int  property 
)
static

◆ ao_esd_num_channels()

static int ao_esd_num_channels ( ao_driver_t this_gen)
static

Referenced by open_plugin().

◆ ao_esd_open()

static int ao_esd_open ( ao_driver_t this_gen,
uint32_t  bits,
uint32_t  rate,
int  mode 
)
static

◆ ao_esd_set_property()

static int ao_esd_set_property ( ao_driver_t this_gen,
int  property,
int  value 
)
static

◆ ao_esd_write()

static int ao_esd_write ( ao_driver_t this_gen,
int16_t *  frame_buffer,
uint32_t  num_frames 
)
static

References NULL, XINE_VERBOSITY_DEBUG, and xprintf.

Referenced by open_plugin().

◆ init_class()

static void * init_class ( xine_t xine,
const void *  data 
)
static

◆ open_plugin()

static ao_driver_t * open_plugin ( audio_driver_class_t class_gen,
const void *  data 
)
static

Variable Documentation

◆ ao_info_esd

const ao_info_t ao_info_esd
static
Initial value:
= {
.priority = 4,
}

◆ EXPORTED

const plugin_info_t xine_plugin_info [] EXPORTED
Initial value:
= {
{ PLUGIN_NONE, 0, NULL, 0, NULL, NULL }
}
static void * init_class(xine_t *xine, const void *data)
Definition: audio_esd_out.c:570
static const ao_info_t ao_info_esd
Definition: audio_esd_out.c:590
#define XINE_VERSION_CODE
Definition: xine_internal.h:57
NULL
Definition: xine_plugin.c:78
#define PLUGIN_NONE
Definition: xine_plugin.h:29
#define PLUGIN_AUDIO_OUT
Definition: xine_plugin.h:35