+ +
2da5fe7 OpenAVX v0.2.0 - High-performance open-standard IP audio and video transport suite
saifmukhtar · 2026-11-24
c · 74 lines · 1.8 KB · SPDX: MIT
main
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 #include <spa/param/format.h>
9 #include <spa/param/audio/raw.h>
10 #include <spa/param/audio/dsp.h>
11 #include <spa/param/audio/iec958.h>
12 #include <spa/param/audio/dsd.h>
13 #include <spa/param/audio/mp3.h>
14 #include <spa/param/audio/aac.h>
15 #include <spa/param/audio/vorbis.h>
16 #include <spa/param/audio/wma.h>
17 #include <spa/param/audio/ra.h>
18 #include <spa/param/audio/amr.h>
19 #include <spa/param/audio/alac.h>
20 #include <spa/param/audio/flac.h>
21 #include <spa/param/audio/ape.h>
22 #include <spa/param/audio/opus.h>
23 #include <spa/param/audio/ac3.h>
24 #include <spa/param/audio/eac3.h>
25 #include <spa/param/audio/truehd.h>
26 #include <spa/param/audio/dts.h>
27 #include <spa/param/audio/mpegh.h>
28  
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32  
33 /**
34 * \addtogroup spa_param
35 * \{
36 */
37  
38 struct spa_audio_info {
39 uint32_t media_type;
40 uint32_t media_subtype;
41 union {
42 struct spa_audio_info_raw raw;
43 struct spa_audio_info_dsp dsp;
44 struct spa_audio_info_iec958 iec958;
45 struct spa_audio_info_dsd dsd;
46 struct spa_audio_info_mp3 mp3;
47 struct spa_audio_info_aac aac;
48 struct spa_audio_info_vorbis vorbis;
49 struct spa_audio_info_wma wma;
50 struct spa_audio_info_ra ra;
51 struct spa_audio_info_amr amr;
52 struct spa_audio_info_alac alac;
53 struct spa_audio_info_flac flac;
54 struct spa_audio_info_ape ape;
55 struct spa_audio_info_opus opus;
56 struct spa_audio_info_ac3 ac3;
57 struct spa_audio_info_eac3 eac3;
58 struct spa_audio_info_truehd truehd;
59 struct spa_audio_info_dts dts;
60 struct spa_audio_info_mpegh mpegh;
61 } info;
62  
63 /* padding follows here when info has flexible size */
64 };
65  
66 /**
67 * \}
68 */
69  
70 #ifdef __cplusplus
71 } /* extern "C" */
72 #endif
73  
74 #endif /* SPA_PARAM_AUDIO_FORMAT_H */