PipeWire 1.0.5
Loading...
Searching...
No Matches
mp3.h
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#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include <spa/param/audio/raw.h>
13
14enum spa_audio_mp3_channel_mode {
15 SPA_AUDIO_MP3_CHANNEL_MODE_UNKNOWN,
16 SPA_AUDIO_MP3_CHANNEL_MODE_MONO,
17 SPA_AUDIO_MP3_CHANNEL_MODE_STEREO,
18 SPA_AUDIO_MP3_CHANNEL_MODE_JOINTSTEREO,
19 SPA_AUDIO_MP3_CHANNEL_MODE_DUAL,
20};
21
22struct spa_audio_info_mp3 {
23 uint32_t rate; /*< sample rate */
24 uint32_t channels; /*< number of channels */
25};
27#define SPA_AUDIO_INFO_MP3_INIT(...) ((struct spa_audio_info_mp3) { __VA_ARGS__ })
33#ifdef __cplusplus
34} /* extern "C" */
35#endif
36
37#endif /* SPA_AUDIO_MP3_H */
spa/param/audio/raw.h
Definition mp3.h:26
uint32_t rate
Definition mp3.h:27
uint32_t channels
Definition mp3.h:28