Logo Search packages:      
Sourcecode: pulseaudio version File versions

def.h File Reference


Detailed Description

Global definitions

Definition in file def.h.

#include <inttypes.h>
#include <sys/time.h>
#include <time.h>
#include <pulse/cdecl.h>
#include <pulse/sample.h>
#include <pulse/version.h>

Go to the source code of this file.

Classes

struct  pa_buffer_attr
struct  pa_spawn_api
struct  pa_timing_info

Defines

#define PA_INVALID_INDEX   ((uint32_t) -1)
#define PA_STREAM_EVENT_REQUEST_CORK   "request-cork"
#define PA_STREAM_EVENT_REQUEST_UNCORK   "request-uncork"
#define pa_subscription_match_flags(m, t)   (!!((m) & (1 << ((t) & PA_SUBSCRIPTION_EVENT_FACILITY_MASK))))

Typedefs

typedef enum pa_context_flags pa_context_flags_t
typedef PA_C_DECL_BEGIN enum
pa_context_state 
pa_context_state_t
typedef void(* pa_free_cb_t )(void *p)
typedef enum pa_operation_state pa_operation_state_t
typedef enum pa_seek_mode pa_seek_mode_t
typedef enum pa_sink_flags pa_sink_flags_t
typedef enum pa_sink_state pa_sink_state_t
typedef enum pa_source_flags pa_source_flags_t
typedef enum pa_source_state pa_source_state_t
typedef enum pa_stream_direction pa_stream_direction_t
typedef enum pa_stream_flags pa_stream_flags_t
typedef enum pa_stream_state pa_stream_state_t
typedef enum
pa_subscription_event_type 
pa_subscription_event_type_t
typedef enum pa_subscription_mask pa_subscription_mask_t

Enumerations

enum  {
  PA_OK = 0, PA_ERR_ACCESS, PA_ERR_COMMAND, PA_ERR_INVALID,
  PA_ERR_EXIST, PA_ERR_NOENTITY, PA_ERR_CONNECTIONREFUSED, PA_ERR_PROTOCOL,
  PA_ERR_TIMEOUT, PA_ERR_AUTHKEY, PA_ERR_INTERNAL, PA_ERR_CONNECTIONTERMINATED,
  PA_ERR_KILLED, PA_ERR_INVALIDSERVER, PA_ERR_MODINITFAILED, PA_ERR_BADSTATE,
  PA_ERR_NODATA, PA_ERR_VERSION, PA_ERR_TOOLARGE, PA_ERR_NOTSUPPORTED,
  PA_ERR_UNKNOWN, PA_ERR_NOEXTENSION, PA_ERR_OBSOLETE, PA_ERR_NOTIMPLEMENTED,
  PA_ERR_FORKED, PA_ERR_IO, PA_ERR_BUSY, PA_ERR_MAX
}
enum  pa_context_flags { PA_CONTEXT_NOAUTOSPAWN = 0x0001U, PA_CONTEXT_NOFAIL = 0x0002U }
enum  pa_context_state {
  PA_CONTEXT_UNCONNECTED, PA_CONTEXT_CONNECTING, PA_CONTEXT_AUTHORIZING, PA_CONTEXT_SETTING_NAME,
  PA_CONTEXT_READY, PA_CONTEXT_FAILED, PA_CONTEXT_TERMINATED
}
enum  pa_operation_state { PA_OPERATION_RUNNING, PA_OPERATION_DONE, PA_OPERATION_CANCELLED }
enum  pa_seek_mode { PA_SEEK_RELATIVE = 0, PA_SEEK_ABSOLUTE = 1, PA_SEEK_RELATIVE_ON_READ = 2, PA_SEEK_RELATIVE_END = 3 }
enum  pa_sink_flags {
  PA_SINK_HW_VOLUME_CTRL = 0x0001U, PA_SINK_LATENCY = 0x0002U, PA_SINK_HARDWARE = 0x0004U, PA_SINK_NETWORK = 0x0008U,
  PA_SINK_HW_MUTE_CTRL = 0x0010U, PA_SINK_DECIBEL_VOLUME = 0x0020U, PA_SINK_FLAT_VOLUME = 0x0040U, PA_SINK_DYNAMIC_LATENCY = 0x0080U
}
enum  pa_sink_state { PA_SINK_INVALID_STATE = -1, PA_SINK_RUNNING = 0, PA_SINK_IDLE = 1, PA_SINK_SUSPENDED = 2 }
enum  pa_source_flags {
  PA_SOURCE_HW_VOLUME_CTRL = 0x0001U, PA_SOURCE_LATENCY = 0x0002U, PA_SOURCE_HARDWARE = 0x0004U, PA_SOURCE_NETWORK = 0x0008U,
  PA_SOURCE_HW_MUTE_CTRL = 0x0010U, PA_SOURCE_DECIBEL_VOLUME = 0x0020U, PA_SOURCE_DYNAMIC_LATENCY = 0x0040U
}
enum  pa_source_state { PA_SOURCE_INVALID_STATE = -1, PA_SOURCE_RUNNING = 0, PA_SOURCE_IDLE = 1, PA_SOURCE_SUSPENDED = 2 }
enum  pa_stream_direction { PA_STREAM_NODIRECTION, PA_STREAM_PLAYBACK, PA_STREAM_RECORD, PA_STREAM_UPLOAD }
enum  pa_stream_flags {
  PA_STREAM_START_CORKED = 0x0001U, PA_STREAM_INTERPOLATE_TIMING = 0x0002U, PA_STREAM_NOT_MONOTONIC = 0x0004U, PA_STREAM_AUTO_TIMING_UPDATE = 0x0008U,
  PA_STREAM_NO_REMAP_CHANNELS = 0x0010U, PA_STREAM_NO_REMIX_CHANNELS = 0x0020U, PA_STREAM_FIX_FORMAT = 0x0040U, PA_STREAM_FIX_RATE = 0x0080U,
  PA_STREAM_FIX_CHANNELS = 0x0100, PA_STREAM_DONT_MOVE = 0x0200U, PA_STREAM_VARIABLE_RATE = 0x0400U, PA_STREAM_PEAK_DETECT = 0x0800U,
  PA_STREAM_START_MUTED = 0x1000U, PA_STREAM_ADJUST_LATENCY = 0x2000U, PA_STREAM_EARLY_REQUESTS = 0x4000U, PA_STREAM_DONT_INHIBIT_AUTO_SUSPEND = 0x8000U,
  PA_STREAM_START_UNMUTED = 0x10000U, PA_STREAM_FAIL_ON_SUSPEND = 0x20000U
}
enum  pa_stream_state {
  PA_STREAM_UNCONNECTED, PA_STREAM_CREATING, PA_STREAM_READY, PA_STREAM_FAILED,
  PA_STREAM_TERMINATED
}
enum  pa_subscription_event_type {
  PA_SUBSCRIPTION_EVENT_SINK = 0x0000U, PA_SUBSCRIPTION_EVENT_SOURCE = 0x0001U, PA_SUBSCRIPTION_EVENT_SINK_INPUT = 0x0002U, PA_SUBSCRIPTION_EVENT_SOURCE_OUTPUT = 0x0003U,
  PA_SUBSCRIPTION_EVENT_MODULE = 0x0004U, PA_SUBSCRIPTION_EVENT_CLIENT = 0x0005U, PA_SUBSCRIPTION_EVENT_SAMPLE_CACHE = 0x0006U, PA_SUBSCRIPTION_EVENT_SERVER = 0x0007U,
  PA_SUBSCRIPTION_EVENT_CARD = 0x0009U, PA_SUBSCRIPTION_EVENT_FACILITY_MASK = 0x000FU, PA_SUBSCRIPTION_EVENT_NEW = 0x0000U, PA_SUBSCRIPTION_EVENT_CHANGE = 0x0010U,
  PA_SUBSCRIPTION_EVENT_REMOVE = 0x0020U, PA_SUBSCRIPTION_EVENT_TYPE_MASK = 0x0030U
}
enum  pa_subscription_mask {
  PA_SUBSCRIPTION_MASK_NULL = 0x0000U, PA_SUBSCRIPTION_MASK_SINK = 0x0001U, PA_SUBSCRIPTION_MASK_SOURCE = 0x0002U, PA_SUBSCRIPTION_MASK_SINK_INPUT = 0x0004U,
  PA_SUBSCRIPTION_MASK_SOURCE_OUTPUT = 0x0008U, PA_SUBSCRIPTION_MASK_MODULE = 0x0010U, PA_SUBSCRIPTION_MASK_CLIENT = 0x0020U, PA_SUBSCRIPTION_MASK_SAMPLE_CACHE = 0x0040U,
  PA_SUBSCRIPTION_MASK_SERVER = 0x0080U, PA_SUBSCRIPTION_MASK_CARD = 0x0200U, PA_SUBSCRIPTION_MASK_ALL = 0x02ffU
}

Functions

static int PA_CONTEXT_IS_GOOD (pa_context_state_t x)
static int PA_SINK_IS_OPENED (pa_sink_state_t x)
static int PA_SOURCE_IS_OPENED (pa_source_state_t x)
static int PA_STREAM_IS_GOOD (pa_stream_state_t x)


Generated by  Doxygen 1.6.0   Back to index