PipeWire  1.6.4
mp3.h
Go to the documentation of this file.
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 
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 
49 #ifdef __cplusplus
50 } /* extern "C" */
51 #endif
52 
53 #endif /* SPA_AUDIO_MP3_H */
spa/param/audio/raw.h
spa_audio_mp3_channel_mode
Definition: mp3.h:24
@ SPA_AUDIO_MP3_CHANNEL_MODE_JOINTSTEREO
Joint stereo mode, exploiting the similarities between channels using techniques like mid-side coding...
Definition: mp3.h:34
@ SPA_AUDIO_MP3_CHANNEL_MODE_MONO
Mono mode, only used if channel count is 1.
Definition: mp3.h:27
@ SPA_AUDIO_MP3_CHANNEL_MODE_UNKNOWN
Definition: mp3.h:25
@ SPA_AUDIO_MP3_CHANNEL_MODE_DUAL
Two mono tracks, different from stereo in that each channel contains entirely different content (like...
Definition: mp3.h:39
@ SPA_AUDIO_MP3_CHANNEL_MODE_STEREO
Regular stereo mode with two independent channels.
Definition: mp3.h:29
Definition: mp3.h:42
uint32_t rate
Definition: mp3.h:43
uint32_t channels
Definition: mp3.h:44
enum spa_audio_mp3_channel_mode channel_mode
Definition: mp3.h:45