xine-lib 1.2.11
|
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <math.h>
#include <unistd.h>
#include <sys/audioio.h>
#include <sys/uio.h>
#include <sys/ioctl.h>
#include <inttypes.h>
#include <sys/param.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/audio_out.h>
Data Structures | |
struct | sun_class_t |
struct | sun_driver_s |
Macros | |
#define | AUDIO_CHANNELS_MONO 1 |
#define | AUDIO_CHANNELS_STEREO 2 |
#define | AUDIO_PRECISION_8 8 |
#define | AUDIO_PRECISION_16 16 |
#define | AO_SUN_IFACE_VERSION 9 |
#define | GAP_TOLERANCE 5000 |
#define | GAP_NONRT_TOLERANCE AO_MAX_GAP |
#define | NOT_REAL_TIME -1 |
Typedefs | |
typedef struct sun_driver_s | sun_driver_t |
Functions | |
static int | realtime_samplecounter_available (xine_t *xine, char *dev) |
static int | find_close_samplerate_match (int dev, int sample_rate) |
static int | find_highest_samplerate (int dev) |
static int | ao_sun_open (ao_driver_t *this_gen, uint32_t bits, uint32_t rate, int mode) |
static int | ao_sun_num_channels (ao_driver_t *this_gen) |
static int | ao_sun_bytes_per_frame (ao_driver_t *this_gen) |
static int | ao_sun_delay (ao_driver_t *this_gen) |
static int | ao_sun_get_gap_tolerance (ao_driver_t *this_gen) |
static int | sun_audio_write (sun_driver_t *this, char *buf, unsigned nbytes) |
static void | sun_audio_flush (sun_driver_t *this) |
static int | ao_sun_write (ao_driver_t *this_gen, int16_t *data, uint32_t num_frames) |
static void | ao_sun_close (ao_driver_t *this_gen) |
static uint32_t | ao_sun_get_capabilities (ao_driver_t *this_gen) |
static void | ao_sun_exit (ao_driver_t *this_gen) |
static int | ao_sun_get_property (ao_driver_t *this_gen, int property) |
static int | ao_sun_set_property (ao_driver_t *this_gen, int property, int value) |
static int | ao_sun_ctrl (ao_driver_t *this_gen, int cmd,...) |
static ao_driver_t * | ao_sun_open_plugin (audio_driver_class_t *class_gen, const void *data) |
static void * | ao_sun_init_class (xine_t *xine, const void *data) |
Variables | |
static const ao_info_t | ao_info_sun |
const plugin_info_t xine_plugin_info[] | EXPORTED |
#define AO_SUN_IFACE_VERSION 9 |
#define AUDIO_CHANNELS_MONO 1 |
#define AUDIO_CHANNELS_STEREO 2 |
#define AUDIO_PRECISION_16 16 |
#define AUDIO_PRECISION_8 8 |
#define GAP_NONRT_TOLERANCE AO_MAX_GAP |
#define GAP_TOLERANCE 5000 |
#define NOT_REAL_TIME -1 |
typedef struct sun_driver_s sun_driver_t |
|
static |
Referenced by ao_sun_open_plugin().
|
static |
References sun_audio_flush().
Referenced by ao_sun_open_plugin().
|
static |
References AO_CTRL_FLUSH_BUFFERS, AO_CTRL_PLAY_PAUSE, and AO_CTRL_PLAY_RESUME.
Referenced by ao_sun_open_plugin().
|
static |
References abs, NOT_REAL_TIME, NULL, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by ao_sun_open_plugin(), and ao_sun_write().
|
static |
Referenced by ao_sun_open_plugin().
|
static |
Referenced by ao_sun_open_plugin().
|
static |
References GAP_NONRT_TOLERANCE, and GAP_TOLERANCE.
Referenced by ao_sun_open_plugin().
|
static |
References AO_PROP_MIXER_VOL, AO_PROP_MUTE_VOL, and AO_PROP_PCM_VOL.
Referenced by ao_sun_open_plugin().
|
static |
|
static |
Referenced by ao_sun_open_plugin().
|
static |
References _, AO_CAP_MODE_STEREO, AUDIO_CHANNELS_MONO, AUDIO_CHANNELS_STEREO, bits, find_close_samplerate_match(), find_highest_samplerate(), mode(), xine_open_cloexec(), XINE_VERBOSITY_DEBUG, XINE_VERBOSITY_LOG, and xprintf.
Referenced by ao_sun_open_plugin().
|
static |
References _, AO_CAP_16BITS, AO_CAP_8BITS, AO_CAP_MODE_MONO, AO_CAP_MODE_STEREO, AO_CAP_MUTE_VOL, AO_CAP_PCM_VOL, AO_PROP_MIXER_VOL, ao_sun_bytes_per_frame(), ao_sun_close(), ao_sun_ctrl(), ao_sun_delay(), ao_sun_exit(), ao_sun_get_capabilities(), ao_sun_get_gap_tolerance(), ao_sun_get_property(), ao_sun_num_channels(), ao_sun_open(), ao_sun_set_property(), ao_sun_write(), AUDIO_PRECISION_16, xine_s::config, NULL, realtime_samplecounter_available(), config_values_s::xine, sun_class_t::xine, XINE_CONFIG_SECURITY, XINE_CONFIG_STRING_IS_DEVICE_NAME, xine_open_cloexec(), XINE_VERBOSITY_DEBUG, XINE_VERBOSITY_LOG, and xprintf.
Referenced by ao_sun_init_class().
|
static |
References AO_PROP_MIXER_VOL, AO_PROP_MUTE_VOL, and AO_PROP_PCM_VOL.
Referenced by ao_sun_open_plugin().
|
static |
References ao_sun_delay(), and sun_audio_write().
Referenced by ao_sun_open_plugin().
|
static |
References abs.
Referenced by ao_sun_open().
|
static |
Referenced by ao_sun_open().
|
static |
References AUDIO_CHANNELS_STEREO, AUDIO_PRECISION_16, NULL, silence(), xine_open_cloexec(), XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by ao_sun_open_plugin().
|
static |
Referenced by ao_sun_close().
|
static |
Referenced by ao_sun_write().
|
static |
const plugin_info_t xine_plugin_info [] EXPORTED |