Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

Classes | Defines | Typedefs | Enumerations | Functions

sample.h File Reference

#include <inttypes.h>
#include <sys/types.h>
#include <sys/param.h>
#include <math.h>
#include <pulse/gccmacro.h>
#include <pulse/cdecl.h>
#include <pulse/version.h>
Include dependency graph for sample.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pa_sample_spec

Defines

#define PA_BYTES_SNPRINT_MAX   11
#define PA_CHANNELS_MAX   32U
#define PA_RATE_MAX   (48000U*4U)
#define PA_SAMPLE_FLOAT32   PA_SAMPLE_FLOAT32NE
#define PA_SAMPLE_FLOAT32NE   PA_SAMPLE_FLOAT32LE
#define PA_SAMPLE_FLOAT32RE   PA_SAMPLE_FLOAT32BE
#define pa_sample_format_is_ne(f)   pa_sample_format_is_le(f)
#define pa_sample_format_is_re(f)   pa_sample_format_is_be(f)
#define PA_SAMPLE_S16NE   PA_SAMPLE_S16LE
#define PA_SAMPLE_S16RE   PA_SAMPLE_S16BE
#define PA_SAMPLE_S24_32NE   PA_SAMPLE_S24_32LE
#define PA_SAMPLE_S24_32RE   PA_SAMPLE_S24_32BE
#define PA_SAMPLE_S24NE   PA_SAMPLE_S24LE
#define PA_SAMPLE_S24RE   PA_SAMPLE_S24BE
#define PA_SAMPLE_S32NE   PA_SAMPLE_S32LE
#define PA_SAMPLE_S32RE   PA_SAMPLE_S32BE
#define PA_SAMPLE_SPEC_SNPRINT_MAX   32

Typedefs

typedef enum pa_sample_format pa_sample_format_t
typedef struct pa_sample_spec pa_sample_spec
typedef uint64_t pa_usec_t

Enumerations

enum  pa_sample_format {
  PA_SAMPLE_U8, PA_SAMPLE_ALAW, PA_SAMPLE_ULAW, PA_SAMPLE_S16LE,
  PA_SAMPLE_S16BE, PA_SAMPLE_FLOAT32LE, PA_SAMPLE_FLOAT32BE, PA_SAMPLE_S32LE,
  PA_SAMPLE_S32BE, PA_SAMPLE_S24LE, PA_SAMPLE_S24BE, PA_SAMPLE_S24_32LE,
  PA_SAMPLE_S24_32BE, PA_SAMPLE_MAX, PA_SAMPLE_INVALID = -1
}

Functions

size_t pa_bytes_per_second (const pa_sample_spec *spec) PA_GCC_PURE
char * pa_bytes_snprint (char *s, size_t l, unsigned v)
pa_usec_t pa_bytes_to_usec (uint64_t length, const pa_sample_spec *spec) PA_GCC_PURE
size_t pa_frame_size (const pa_sample_spec *spec) PA_GCC_PURE
pa_sample_format_t pa_parse_sample_format (const char *format) PA_GCC_PURE
int pa_sample_format_is_be (pa_sample_format_t f) PA_GCC_PURE
int pa_sample_format_is_le (pa_sample_format_t f) PA_GCC_PURE
const char * pa_sample_format_to_string (pa_sample_format_t f) PA_GCC_PURE
size_t pa_sample_size (const pa_sample_spec *spec) PA_GCC_PURE
size_t pa_sample_size_of_format (pa_sample_format_t f) PA_GCC_PURE
int pa_sample_spec_equal (const pa_sample_spec *a, const pa_sample_spec *b) PA_GCC_PURE
pa_sample_specpa_sample_spec_init (pa_sample_spec *spec)
char * pa_sample_spec_snprint (char *s, size_t l, const pa_sample_spec *spec)
int pa_sample_spec_valid (const pa_sample_spec *spec) PA_GCC_PURE
size_t pa_usec_to_bytes (pa_usec_t t, const pa_sample_spec *spec) PA_GCC_PURE

Detailed Description

Constants and routines for sample type handling

Definition in file sample.h.


Generated by  Doxygen 1.6.0   Back to index