PipeWire  0.3.34
param/audio/type-info.h
Go to the documentation of this file.
1 /* Simple Plugin API
2  *
3  * Copyright © 2018 Wim Taymans
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 
25 #ifndef SPA_AUDIO_TYPES_H
26 #define SPA_AUDIO_TYPES_H
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
37 #include <spa/param/audio/raw.h>
38 
39 #define SPA_TYPE_INFO_AudioFormat SPA_TYPE_INFO_ENUM_BASE "AudioFormat"
40 #define SPA_TYPE_INFO_AUDIO_FORMAT_BASE SPA_TYPE_INFO_AudioFormat ":"
41 
42 /* static */ const struct spa_type_info spa_type_audio_format[] = {
75 
78 
87 
88 #if __BYTE_ORDER == __BIG_ENDIAN
117 #elif __BYTE_ORDER == __LITTLE_ENDIAN
146 #endif
147  { 0, 0, NULL, NULL },
148 };
149 
150 #define SPA_TYPE_INFO_AudioFlags SPA_TYPE_INFO_FLAGS_BASE "AudioFlags"
151 #define SPA_TYPE_INFO_AUDIO_FLAGS_BASE SPA_TYPE_INFO_AudioFlags ":"
152 
153 /* static */ const struct spa_type_info spa_type_audio_flags[] = {
156  { 0, 0, NULL, NULL },
157 };
158 
159 #define SPA_TYPE_INFO_AudioChannel SPA_TYPE_INFO_ENUM_BASE "AudioChannel"
160 #define SPA_TYPE_INFO_AUDIO_CHANNEL_BASE SPA_TYPE_INFO_AudioChannel ":"
161 
162 /* static */ const struct spa_type_info spa_type_audio_channel[] = {
201 
266  { 0, 0, NULL, NULL },
267 };
268 
269 
270 #include <spa/param/audio/iec958.h>
271 
272 #define SPA_TYPE_INFO_AudioIEC958Codec SPA_TYPE_INFO_ENUM_BASE "AudioIEC958Codec"
273 #define SPA_TYPE_INFO_AUDIO_IEC958_CODEC_BASE SPA_TYPE_INFO_AudioIEC958Codec ":"
274 
275 /* static */ const struct spa_type_info spa_type_audio_iec958_codec[] = {
285  { 0, 0, NULL, NULL },
286 };
287 
288 
293 #ifdef __cplusplus
294 } /* extern "C" */
295 #endif
296 
297 #endif /* SPA_AUDIO_RAW_TYPES_H */
Definition: audio/raw.h:92
front left wide
Definition: audio/raw.h:197
const struct spa_type_info spa_type_audio_format[]
Definition: param/audio/type-info.h:42
top front right
Definition: audio/raw.h:191
Definition: audio/raw.h:67
Definition: audio/raw.h:271
front left high
Definition: audio/raw.h:200
top rear left
Definition: audio/raw.h:192
Definition: audio/raw.h:249
Definition: audio/raw.h:227
Definition: audio/raw.h:129
Definition: audio/raw.h:261
const struct spa_type_info spa_type_audio_flags[]
Definition: param/audio/type-info.h:153
Definition: audio/raw.h:118
Definition: audio/raw.h:128
Definition: audio/raw.h:75
Definition: audio/raw.h:214
bottom center
Definition: audio/raw.h:209
Definition: audio/raw.h:274
top front center
Definition: audio/raw.h:190
top front left
Definition: audio/raw.h:189
Definition: audio/raw.h:74
Definition: iec958.h:42
Definition: audio/raw.h:251
top center
Definition: audio/raw.h:188
Definition: audio/raw.h:117
Definition: audio/raw.h:94
Definition: audio/raw.h:135
Definition: audio/raw.h:243
Definition: audio/raw.h:90
Definition: audio/raw.h:132
Definition: audio/raw.h:238
Definition: audio/raw.h:54
Definition: audio/raw.h:252
top front right center
Definition: audio/raw.h:204
Definition: audio/raw.h:219
Definition: audio/raw.h:218
front center high
Definition: audio/raw.h:201
front right wide
Definition: audio/raw.h:198
Definition: audio/raw.h:267
Definition: audio/raw.h:83
Definition: audio/raw.h:262
Definition: audio/raw.h:133
Definition: audio/raw.h:62
Definition: audio/raw.h:250
Definition: audio/raw.h:63
Definition: audio/raw.h:226
rear right
Definition: audio/raw.h:187
mono stream
Definition: audio/raw.h:175
Definition: audio/raw.h:68
Definition: audio/raw.h:231
LFE.
Definition: audio/raw.h:180
Definition: audio/raw.h:80
N/A, silent.
Definition: audio/raw.h:173
left LFE
Definition: audio/raw.h:207
Definition: audio/raw.h:52
Definition: audio/raw.h:58
Definition: obj-x86_64-linux-gnu/doc/spa/utils/type.h:48
Definition: audio/raw.h:130
Definition: audio/raw.h:241
Definition: audio/raw.h:232
Definition: audio/raw.h:234
Definition: audio/raw.h:245
Definition: audio/raw.h:254
Dolby TrueHD.
Definition: iec958.h:49
Definition: audio/raw.h:82
Definition: audio/raw.h:224
Definition: audio/raw.h:269
Definition: obj-x86_64-linux-gnu/doc/spa/utils/type.h:137
Definition: audio/raw.h:47
Definition: audio/raw.h:258
Definition: audio/raw.h:77
Definition: iec958.h:39
const struct spa_type_info spa_type_audio_iec958_codec[]
Definition: param/audio/type-info.h:275
Definition: audio/raw.h:275
#define SPA_TYPE_INFO_AUDIO_FLAGS_BASE
Definition: param/audio/type-info.h:151
Definition: audio/raw.h:109
Definition: audio/raw.h:124
Definition: audio/raw.h:255
Definition: audio/raw.h:60
Definition: audio/raw.h:215
Definition: audio/raw.h:127
Definition: audio/raw.h:111
Definition: audio/raw.h:114
Definition: audio/raw.h:270
Definition: audio/raw.h:66
top side left
Definition: audio/raw.h:205
Definition: audio/raw.h:61
rear right center
Definition: audio/raw.h:196
Definition: audio/raw.h:70
Definition: audio/raw.h:230
Definition: audio/raw.h:78
front left center
Definition: audio/raw.h:183
Definition: audio/raw.h:93
bottom left center
Definition: audio/raw.h:210
Definition: audio/raw.h:108
Definition: audio/raw.h:56
Definition: audio/raw.h:268
Definition: audio/raw.h:242
Definition: audio/raw.h:220
MPEG-2 AAC.
Definition: iec958.h:45
Definition: audio/raw.h:256
Definition: audio/raw.h:216
Definition: audio/raw.h:55
Definition: audio/raw.h:246
Definition: audio/raw.h:110
Definition: audio/raw.h:119
Definition: audio/raw.h:71
Definition: audio/raw.h:46
rear left center
Definition: audio/raw.h:195
Definition: audio/raw.h:91
Definition: audio/raw.h:79
Definition: audio/raw.h:121
Definition: audio/raw.h:222
LFE 2.
Definition: audio/raw.h:199
rear center
Definition: audio/raw.h:185
Definition: audio/raw.h:264
Definition: iec958.h:41
top rear center
Definition: audio/raw.h:193
front left
Definition: audio/raw.h:177
Definition: iec958.h:47
Definition: audio/raw.h:233
Definition: audio/raw.h:120
Definition: audio/raw.h:266
bottom right center
Definition: audio/raw.h:211
Definition: audio/raw.h:125
const struct spa_type_info spa_type_audio_channel[]
Definition: param/audio/type-info.h:162
Definition: audio/raw.h:57
Definition: audio/raw.h:51
Definition: audio/raw.h:248
DTS-HD Master Audio.
Definition: iec958.h:50
top side right
Definition: audio/raw.h:206
Definition: audio/raw.h:134
side right
Definition: audio/raw.h:182
Definition: iec958.h:43
Definition: audio/raw.h:277
Definition: audio/raw.h:126
Definition: audio/raw.h:221
unspecified
Definition: audio/raw.h:172
Definition: audio/raw.h:113
front right high
Definition: audio/raw.h:202
front right center
Definition: audio/raw.h:184
Definition: audio/raw.h:64
rear left
Definition: audio/raw.h:186
Definition: audio/raw.h:276
Definition: audio/raw.h:273
Definition: audio/raw.h:59
Definition: audio/raw.h:229
Definition: audio/raw.h:225
Definition: audio/raw.h:228
Definition: audio/raw.h:223
Definition: audio/raw.h:263
Definition: audio/raw.h:236
Definition: audio/raw.h:65
#define SPA_TYPE_INFO_AUDIO_IEC958_CODEC_BASE
Definition: param/audio/type-info.h:273
Definition: audio/raw.h:260
MPEG-1 or MPEG-2 (Part 3, not AAC)
Definition: iec958.h:44
Definition: audio/raw.h:131
#define SPA_TYPE_INFO_AUDIO_FORMAT_BASE
Definition: param/audio/type-info.h:40
Definition: audio/raw.h:235
Definition: audio/raw.h:217
#define SPA_AUDIO_FLAG_UNPOSITIONED
Definition: audio/raw.h:286
Definition: audio/raw.h:122
Definition: audio/raw.h:73
Definition: audio/raw.h:69
Definition: audio/raw.h:247
top front left center
Definition: audio/raw.h:203
front center
Definition: audio/raw.h:179
Definition: audio/raw.h:257
front right
Definition: audio/raw.h:178
Definition: audio/raw.h:89
Definition: audio/raw.h:123
Definition: audio/raw.h:237
#define SPA_AUDIO_FLAG_NONE
Extra audio flags.
Definition: audio/raw.h:285
Definition: audio/raw.h:253
top rear right
Definition: audio/raw.h:194
Definition: audio/raw.h:72
Definition: audio/raw.h:116
Definition: audio/raw.h:112
Definition: audio/raw.h:239
Definition: audio/raw.h:115
right LFE
Definition: audio/raw.h:208
side left
Definition: audio/raw.h:181
Definition: audio/raw.h:88
Definition: audio/raw.h:244
Definition: audio/raw.h:87
Definition: audio/raw.h:265
Definition: audio/raw.h:259
#define SPA_TYPE_INFO_AUDIO_CHANNEL_BASE
Definition: param/audio/type-info.h:160
Definition: audio/raw.h:76
Definition: audio/raw.h:53
Definition: audio/raw.h:272
Definition: audio/raw.h:240