+ +
2da5fe7 OpenAVX v0.2.0 - High-performance open-standard IP audio and video transport suite
saifmukhtar · 2026-11-24
c · 52 lines · 1.4 KB · SPDX: MIT
main
1 /* Simple Plugin API */
2 /* SPDX-FileCopyrightText: Copyright © 2025 Carlos Rafael Giani */
3 /* SPDX-License-Identifier: MIT */
4  
5 #ifndef SPA_AUDIO_MPEGH_H
6 #define SPA_AUDIO_MPEGH_H
7  
8 #include <spa/param/audio/raw.h>
9  
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13  
14 /**
15 * \addtogroup spa_param
16 * \{
17 */
18  
19 /**
20 * MPEG-H 3D audio info.
21 *
22 * MPEG-H content is assumed to be provided in the form of an MPEG-H
23 * 3D Audio Stream (MHAS). MHAS is a lightweight bitstream format that
24 * encapsulates MPEG-H 3D Audio frames along with associated metadata.
25 * It serves a similar role to the Annex B byte stream format used for
26 * H.264, providing framing and synchronization for MPEG-H frames.
27 *
28 * MPEG-H is documented in the ISO/IEC 23008-3 specification.
29 * MHAS is specified in ISO/IEC 23008-3, Clause 14.
30 *
31 * Note that unlike other formats, this one does not specify a channel
32 * count. This is because MPEG-H is entity-based; it contains multiple
33 * entities of different types (channel beds, audio objects etc.) which
34 * do not map 1:1 to channels. The channel amount is determined by
35 * decoders instead, based on the audio scene content and the target
36 * playback system.
37 */
38 struct spa_audio_info_mpegh {
39 uint32_t rate; /*< sample rate */
40 };
41  
42 #define SPA_AUDIO_INFO_MPEGH_INIT(...) ((struct spa_audio_info_mpegh) { __VA_ARGS__ })
43  
44 /**
45 * \}
46 */
47  
48 #ifdef __cplusplus
49 } /* extern "C" */
50 #endif
51  
52 #endif /* SPA_AUDIO_MPEGH_H */