PipeWire: spa/param/audio/mp3-types.h Source File

PipeWire 1.0.3

Loading...
Searching...
No Matches
mp3-types.h
1/* Simple Plugin API */
2/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
3/* SPDX-License-Identifier: MIT */
4
5#ifndef SPA_AUDIO_MP3_TYPES_H
6#define SPA_AUDIO_MP3_TYPES_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include <spa/utils/type.h>
13#include <spa/param/audio/mp3.h>
14
15#define SPA_TYPE_INFO_AudioMP3ChannelMode SPA_TYPE_INFO_ENUM_BASE "AudioMP3ChannelMode"
16#define SPA_TYPE_INFO_AUDIO_MP3_CHANNEL_MODE_BASE SPA_TYPE_INFO_AudioMP3ChannelMode ":"
17
18static const struct spa_type_info spa_type_audio_mp3_channel_mode[] = {
19 { SPA_AUDIO_MP3_CHANNEL_MODE_UNKNOWN, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_MP3_CHANNEL_MODE_BASE "UNKNOWN", NULL },
20 { SPA_AUDIO_MP3_CHANNEL_MODE_MONO, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_MP3_CHANNEL_MODE_BASE "Mono", NULL },
21 { SPA_AUDIO_MP3_CHANNEL_MODE_STEREO, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_MP3_CHANNEL_MODE_BASE "Stereo", NULL },
22 { SPA_AUDIO_MP3_CHANNEL_MODE_JOINTSTEREO, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_MP3_CHANNEL_MODE_BASE "Joint-stereo", NULL },
23 { SPA_AUDIO_MP3_CHANNEL_MODE_DUAL, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_MP3_CHANNEL_MODE_BASE "Dual", NULL },
24 { 0, 0, NULL, NULL },
25};
30#ifdef __cplusplus
31} /* extern "C" */
32#endif
33
34#endif /* SPA_AUDIO_MP3_TYPES_H */
SPA_TYPE_Int
@ SPA_TYPE_Int
Definition type.h:34
type.h
spa/utils/type.h
spa_type_info
Definition type.h:143
spa_type_info::type
uint32_t type
Definition type.h:144