+ +
2da5fe7 OpenAVX v0.2.0 - High-performance open-standard IP audio and video transport suite
saifmukhtar · 2026-11-24
c · 53 lines · 1.2 KB · SPDX: MIT
main
1 /* Simple Plugin API */
2 /* SPDX-FileCopyrightText: Copyright © 2023 Wim Taymans */
3 /* SPDX-License-Identifier: MIT */
4  
5 #ifndef SPA_AUDIO_MP3_H
6 #define SPA_AUDIO_MP3_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 enum spa_audio_mp3_channel_mode {
20 SPA_AUDIO_MP3_CHANNEL_MODE_UNKNOWN,
21 /** Mono mode, only used if channel count is 1 */
22 SPA_AUDIO_MP3_CHANNEL_MODE_MONO,
23 /** Regular stereo mode with two independent channels */
24 SPA_AUDIO_MP3_CHANNEL_MODE_STEREO,
25 /**
26 * Joint stereo mode, exploiting the similarities between channels
27 * using techniques like mid-side coding
28 */
29 SPA_AUDIO_MP3_CHANNEL_MODE_JOINTSTEREO,
30 /**
31 * Two mono tracks, different from stereo in that each channel
32 * contains entirely different content (like two different mono songs)
33 */
34 SPA_AUDIO_MP3_CHANNEL_MODE_DUAL,
35 };
36  
37 struct spa_audio_info_mp3 {
38 uint32_t rate; /*< sample rate in Hz */
39 uint32_t channels; /*< number of channels */
40 enum spa_audio_mp3_channel_mode channel_mode; /*< MP3 channel mode */
41 };
42  
43 #define SPA_AUDIO_INFO_MP3_INIT(...) ((struct spa_audio_info_mp3) { __VA_ARGS__ })
44  
45 /**
46 * \}
47 */
48  
49 #ifdef __cplusplus
50 } /* extern "C" */
51 #endif
52  
53 #endif /* SPA_AUDIO_MP3_H */