~ubuntu-branches/ubuntu/oneiric/pulseaudio/oneiric

« back to all changes in this revision

Viewing changes to src/pulse/sample.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071204005608-y1xqvcu45g1yxtlu
Tags: 0.9.8-1ubuntu1
"Hail our new PulseAudio overlords (part two)."

* Merge from Debian unstable.
* Ubuntu-specific changes:
  - debian/control:
    + Don't build-depend on libjack0.100.0-dev or build jack module
      packages,
    + Update pulseaudio's Recommends and Suggests to accomodate
      existing promoted main packages,
    + Explicitly mention pasuspender in pulseaudio-utils's long
      description,
    + Add Vcs-Bzr URI,
    + Adhere to DebianMaintainerField;
  - debian/rules: Use multiuser for update-rc.d;
  - debian/patches/series: Retain the exclusion of
    0001-Set-ESD-socket-to-tmp-.esd-socket-to-match-up-with.patch.
* Dropped Ubuntu-specific change (absorbed into Debian source):
  debian/patches/0002-Double-esound-maximum-sample-size.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef foosamplehfoo
2
2
#define foosamplehfoo
3
3
 
4
 
/* $Id: sample.h 1971 2007-10-28 19:13:50Z lennart $ */
 
4
/* $Id: sample.h 2042 2007-11-09 18:24:09Z lennart $ */
5
5
 
6
6
/***
7
7
  This file is part of PulseAudio.
42
42
 *
43
43
 * PulseAudio supports the following sample formats:
44
44
 *
45
 
 * \li PA_SAMPLE_U8 - Unsigned 8 bit PCM.
46
 
 * \li PA_SAMPLE_S16LE - Signed 16 bit PCM, little endian.
47
 
 * \li PA_SAMPLE_S16BE - Signed 16 bit PCM, big endian.
 
45
 * \li PA_SAMPLE_U8 - Unsigned 8 bit integer PCM.
 
46
 * \li PA_SAMPLE_S16LE - Signed 16 integer bit PCM, little endian.
 
47
 * \li PA_SAMPLE_S16BE - Signed 16 integer bit PCM, big endian.
48
48
 * \li PA_SAMPLE_FLOAT32LE - 32 bit IEEE floating point PCM, little endian.
49
49
 * \li PA_SAMPLE_FLOAT32BE - 32 bit IEEE floating point PCM, big endian.
50
50
 * \li PA_SAMPLE_ALAW - 8 bit a-Law.
51
51
 * \li PA_SAMPLE_ULAW - 8 bit mu-Law.
 
52
 * \li PA_SAMPLE_S32LE - Signed 32 bit integer PCM, little endian.
 
53
 * \li PA_SAMPLE_S32BE - Signed 32 bit integer PCM, big endian.
52
54
 *
53
55
 * The floating point sample formats have the range from -1 to 1.
54
56
 *
117
119
    PA_SAMPLE_S16BE,           /**< Signed 16 Bit PCM, big endian */
118
120
    PA_SAMPLE_FLOAT32LE,       /**< 32 Bit IEEE floating point, little endian, range -1 to 1 */
119
121
    PA_SAMPLE_FLOAT32BE,       /**< 32 Bit IEEE floating point, big endian, range -1 to 1 */
 
122
    PA_SAMPLE_S32LE,           /**< Signed 32 Bit PCM, little endian (PC) */
 
123
    PA_SAMPLE_S32BE,           /**< Signed 32 Bit PCM, big endian (PC) */
120
124
    PA_SAMPLE_MAX,             /**< Upper limit of valid sample types */
121
125
    PA_SAMPLE_INVALID = -1     /**< An invalid value */
122
126
} pa_sample_format_t;
126
130
#define PA_SAMPLE_S16NE PA_SAMPLE_S16BE
127
131
/** 32 Bit IEEE floating point, native endian */
128
132
#define PA_SAMPLE_FLOAT32NE PA_SAMPLE_FLOAT32BE
 
133
/** Signed 32 Bit PCM, native endian */
 
134
#define PA_SAMPLE_S32NE PA_SAMPLE_S32BE
129
135
/** Signed 16 Bit PCM reverse endian */
130
136
#define PA_SAMPLE_S16RE PA_SAMPLE_S16LE
131
137
/** 32 Bit IEEE floating point, reverse endian */
132
138
#define PA_SAMPLE_FLOAT32RE PA_SAMPLE_FLOAT32LE
 
139
/** Signed 32 Bit PCM reverse endian */
 
140
#define PA_SAMPLE_S32RE PA_SAMPLE_S32LE
133
141
#else
134
142
/** Signed 16 Bit PCM, native endian */
135
143
#define PA_SAMPLE_S16NE PA_SAMPLE_S16LE
136
144
/** 32 Bit IEEE floating point, native endian */
137
145
#define PA_SAMPLE_FLOAT32NE PA_SAMPLE_FLOAT32LE
 
146
/** Signed 32 Bit PCM, native endian */
 
147
#define PA_SAMPLE_S32NE PA_SAMPLE_S32LE
138
148
/** Signed 16 Bit PCM reverse endian */
139
149
#define PA_SAMPLE_S16RE PA_SAMPLE_S16BE
140
150
/** 32 Bit IEEE floating point, reverse endian */
141
151
#define PA_SAMPLE_FLOAT32RE PA_SAMPLE_FLOAT32BE
 
152
/** Signed 32 Bit PCM reverse endian */
 
153
#define PA_SAMPLE_S32RE PA_SAMPLE_S32BE
142
154
#endif
143
155
 
144
156
/** A Shortcut for PA_SAMPLE_FLOAT32NE */