Logo Search packages:      
Sourcecode: pulseaudio version File versions

channelmap.h File Reference


Detailed Description

Constants and routines for channel mapping handling

Definition in file channelmap.h.

#include <pulse/sample.h>
#include <pulse/cdecl.h>
#include <pulse/gccmacro.h>
#include <pulse/version.h>

Go to the source code of this file.

Classes

struct  pa_channel_map

Defines

#define PA_CHANNEL_MAP_SNPRINT_MAX   336
#define PA_CHANNEL_POSITION_MASK(f)   ((pa_channel_position_mask_t) (1ULL << (f)))

Typedefs

typedef enum pa_channel_map_def pa_channel_map_def_t
typedef uint64_t pa_channel_position_mask_t
typedef PA_C_DECL_BEGIN enum
pa_channel_position 
pa_channel_position_t

Enumerations

enum  pa_channel_map_def {
  PA_CHANNEL_MAP_AIFF, PA_CHANNEL_MAP_ALSA, PA_CHANNEL_MAP_AUX, PA_CHANNEL_MAP_WAVEEX,
  PA_CHANNEL_MAP_OSS, PA_CHANNEL_MAP_DEF_MAX, PA_CHANNEL_MAP_DEFAULT = PA_CHANNEL_MAP_AIFF
}
enum  pa_channel_position {
  PA_CHANNEL_POSITION_INVALID = -1, PA_CHANNEL_POSITION_MONO = 0, PA_CHANNEL_POSITION_FRONT_LEFT, PA_CHANNEL_POSITION_FRONT_RIGHT,
  PA_CHANNEL_POSITION_FRONT_CENTER, PA_CHANNEL_POSITION_REAR_CENTER, PA_CHANNEL_POSITION_REAR_LEFT, PA_CHANNEL_POSITION_REAR_RIGHT,
  PA_CHANNEL_POSITION_LFE, PA_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER, PA_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER, PA_CHANNEL_POSITION_SIDE_LEFT,
  PA_CHANNEL_POSITION_SIDE_RIGHT, PA_CHANNEL_POSITION_AUX0, PA_CHANNEL_POSITION_AUX1, PA_CHANNEL_POSITION_AUX2,
  PA_CHANNEL_POSITION_AUX3, PA_CHANNEL_POSITION_AUX4, PA_CHANNEL_POSITION_AUX5, PA_CHANNEL_POSITION_AUX6,
  PA_CHANNEL_POSITION_AUX7, PA_CHANNEL_POSITION_AUX8, PA_CHANNEL_POSITION_AUX9, PA_CHANNEL_POSITION_AUX10,
  PA_CHANNEL_POSITION_AUX11, PA_CHANNEL_POSITION_AUX12, PA_CHANNEL_POSITION_AUX13, PA_CHANNEL_POSITION_AUX14,
  PA_CHANNEL_POSITION_AUX15, PA_CHANNEL_POSITION_AUX16, PA_CHANNEL_POSITION_AUX17, PA_CHANNEL_POSITION_AUX18,
  PA_CHANNEL_POSITION_AUX19, PA_CHANNEL_POSITION_AUX20, PA_CHANNEL_POSITION_AUX21, PA_CHANNEL_POSITION_AUX22,
  PA_CHANNEL_POSITION_AUX23, PA_CHANNEL_POSITION_AUX24, PA_CHANNEL_POSITION_AUX25, PA_CHANNEL_POSITION_AUX26,
  PA_CHANNEL_POSITION_AUX27, PA_CHANNEL_POSITION_AUX28, PA_CHANNEL_POSITION_AUX29, PA_CHANNEL_POSITION_AUX30,
  PA_CHANNEL_POSITION_AUX31, PA_CHANNEL_POSITION_TOP_CENTER, PA_CHANNEL_POSITION_TOP_FRONT_LEFT, PA_CHANNEL_POSITION_TOP_FRONT_RIGHT,
  PA_CHANNEL_POSITION_TOP_FRONT_CENTER, PA_CHANNEL_POSITION_TOP_REAR_LEFT, PA_CHANNEL_POSITION_TOP_REAR_RIGHT, PA_CHANNEL_POSITION_TOP_REAR_CENTER,
  PA_CHANNEL_POSITION_MAX
}

Functions

int pa_channel_map_can_balance (const pa_channel_map *map) PA_GCC_PURE
int pa_channel_map_can_fade (const pa_channel_map *map) PA_GCC_PURE
int pa_channel_map_compatible (const pa_channel_map *map, const pa_sample_spec *ss) PA_GCC_PURE
int pa_channel_map_equal (const pa_channel_map *a, const pa_channel_map *b) PA_GCC_PURE
int pa_channel_map_has_position (const pa_channel_map *map, pa_channel_position_t p) PA_GCC_PURE
pa_channel_mappa_channel_map_init (pa_channel_map *m)
pa_channel_mappa_channel_map_init_auto (pa_channel_map *m, unsigned channels, pa_channel_map_def_t def)
pa_channel_mappa_channel_map_init_extend (pa_channel_map *m, unsigned channels, pa_channel_map_def_t def)
pa_channel_mappa_channel_map_init_mono (pa_channel_map *m)
pa_channel_mappa_channel_map_init_stereo (pa_channel_map *m)
pa_channel_position_mask_t pa_channel_map_mask (const pa_channel_map *map) PA_GCC_PURE
pa_channel_mappa_channel_map_parse (pa_channel_map *map, const char *s)
char * pa_channel_map_snprint (char *s, size_t l, const pa_channel_map *map)
int pa_channel_map_superset (const pa_channel_map *a, const pa_channel_map *b) PA_GCC_PURE
const char * pa_channel_map_to_name (const pa_channel_map *map) PA_GCC_PURE
const char * pa_channel_map_to_pretty_name (const pa_channel_map *map) PA_GCC_PURE
int pa_channel_map_valid (const pa_channel_map *map) PA_GCC_PURE
pa_channel_position_t pa_channel_position_from_string (const char *s) PA_GCC_PURE
const char * pa_channel_position_to_pretty_string (pa_channel_position_t pos)
const char * pa_channel_position_to_string (pa_channel_position_t pos) PA_GCC_PURE


Generated by  Doxygen 1.6.0   Back to index