PipeWire
1.6.4
Toggle main menu visibility
Loading...
Searching...
No Matches
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
18
19
enum
spa_audio_mp3_channel_mode
{
20
SPA_AUDIO_MP3_CHANNEL_MODE_UNKNOWN
,
22
SPA_AUDIO_MP3_CHANNEL_MODE_MONO
,
24
SPA_AUDIO_MP3_CHANNEL_MODE_STEREO
,
29
SPA_AUDIO_MP3_CHANNEL_MODE_JOINTSTEREO
,
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
47
48
49
#ifdef __cplusplus
50
}
/* extern "C" */
51
#endif
52
53
#endif
/* SPA_AUDIO_MP3_H */
raw.h
spa/param/audio/raw.h
spa_audio_mp3_channel_mode
spa_audio_mp3_channel_mode
Definition
mp3.h:24
SPA_AUDIO_MP3_CHANNEL_MODE_JOINTSTEREO
@ 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
@ 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
@ SPA_AUDIO_MP3_CHANNEL_MODE_UNKNOWN
Definition
mp3.h:25
SPA_AUDIO_MP3_CHANNEL_MODE_DUAL
@ 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
@ SPA_AUDIO_MP3_CHANNEL_MODE_STEREO
Regular stereo mode with two independent channels.
Definition
mp3.h:29
spa_audio_info_mp3
Definition
mp3.h:42
spa_audio_info_mp3::rate
uint32_t rate
Definition
mp3.h:43
spa_audio_info_mp3::channels
uint32_t channels
Definition
mp3.h:44
spa_audio_info_mp3::channel_mode
enum spa_audio_mp3_channel_mode channel_mode
Definition
mp3.h:45
spa
param
audio
mp3.h
Generated by
1.17.0