introduce macros for all flags so that clients can check for them with #ifdef

This commit is contained in:
Lennart Poettering 2008-09-03 19:51:33 +02:00
parent cbd8e60f6c
commit bf403fe0d8
2 changed files with 54 additions and 1 deletions

View file

@ -185,6 +185,19 @@ typedef enum pa_sample_format {
/** A Shortcut for PA_SAMPLE_FLOAT32NE */
#define PA_SAMPLE_FLOAT32 PA_SAMPLE_FLOAT32NE
/** \cond fulldocs */
/* Allow clients to check with #ifdef for thse sample formats */
#define PA_SAMPLE_U8 PA_SAMPLE_U8
#define PA_SAMPLE_ALAW PA_SAMPLE_ALAW
#define PA_SAMPLE_ULAW PA_SAMPLE_ULAW
#define PA_SAMPLE_S16LE PA_SAMPLE_S16LE
#define PA_SAMPLE_S16BE PA_SAMPLE_S16BE
#define PA_SAMPLE_FLOAT32LE PA_SAMPLE_FLOAT32LE
#define PA_SAMPLE_FLOAT32BE PA_SAMPLE_FLOAT32BE
#define PA_SAMPLE_S32LE PA_SAMPLE_S32LE
#define PA_SAMPLE_S32BE PA_SAMPLE_S32BE
/** \endcond */
/** A sample format and attribute specification */
typedef struct pa_sample_spec {
pa_sample_format_t format;