PipeWire  0.3.66
param/audio/format.h
Go to the documentation of this file.
1 /* Simple Plugin API */
2 /* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
3 /* SPDX-License-Identifier: MIT */
4 
5 #ifndef SPA_PARAM_AUDIO_FORMAT_H
6 #define SPA_PARAM_AUDIO_FORMAT_H
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
17 #include <spa/param/format.h>
18 #include <spa/param/audio/raw.h>
19 #include <spa/param/audio/dsp.h>
20 #include <spa/param/audio/iec958.h>
21 #include <spa/param/audio/dsd.h>
22 #include <spa/param/audio/mp3.h>
23 #include <spa/param/audio/aac.h>
24 #include <spa/param/audio/vorbis.h>
25 #include <spa/param/audio/wma.h>
26 #include <spa/param/audio/ra.h>
27 #include <spa/param/audio/amr.h>
28 #include <spa/param/audio/alac.h>
29 #include <spa/param/audio/flac.h>
30 #include <spa/param/audio/ape.h>
31 
32 struct spa_audio_info {
33  uint32_t media_type;
34  uint32_t media_subtype;
35  union {
36  struct spa_audio_info_raw raw;
40  struct spa_audio_info_mp3 mp3;
41  struct spa_audio_info_aac aac;
43  struct spa_audio_info_wma wma;
44  struct spa_audio_info_ra ra;
45  struct spa_audio_info_amr amr;
48  struct spa_audio_info_ape ape;
49  } info;
50 };
51 
56 #ifdef __cplusplus
57 } /* extern "C" */
58 #endif
59 
60 #endif /* SPA_PARAM_AUDIO_FORMAT_H */
spa/param/audio/raw.h
spa/param/audio/dsd.h
spa/param/audio/iec958.h
spa/param/format.h
Definition: aac.h:38
Definition: alac.h:18
Definition: amr.h:24
Definition: ape.h:18
Definition: dsd.h:48
Definition: audio/dsp.h:18
Definition: flac.h:18
Definition: iec958.h:38
Definition: mp3.h:26
Definition: ra.h:18
Audio information description.
Definition: audio/raw.h:278
Definition: vorbis.h:18
Definition: wma.h:32
Definition: param/audio/format.h:37
struct spa_audio_info_dsd dsd
Definition: param/audio/format.h:44
struct spa_audio_info_vorbis vorbis
Definition: param/audio/format.h:47
struct spa_audio_info_dsp dsp
Definition: param/audio/format.h:42
union spa_audio_info::@7 info
struct spa_audio_info_amr amr
Definition: param/audio/format.h:50
uint32_t media_subtype
Definition: param/audio/format.h:39
struct spa_audio_info_mp3 mp3
Definition: param/audio/format.h:45
struct spa_audio_info_ra ra
Definition: param/audio/format.h:49
struct spa_audio_info_raw raw
Definition: param/audio/format.h:41
struct spa_audio_info_ape ape
Definition: param/audio/format.h:53
struct spa_audio_info_aac aac
Definition: param/audio/format.h:46
uint32_t media_type
Definition: param/audio/format.h:38
struct spa_audio_info_iec958 iec958
Definition: param/audio/format.h:43
struct spa_audio_info_wma wma
Definition: param/audio/format.h:48
struct spa_audio_info_alac alac
Definition: param/audio/format.h:51
struct spa_audio_info_flac flac
Definition: param/audio/format.h:52