PipeWire 1.6.5

Loading...
Searching...
No Matches
type-info.h
Go to the documentation of this file.
1/* Simple Plugin API */
2/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
3/* SPDX-License-Identifier: MIT */
4
5#ifndef SPA_BLUETOOTH_TYPES_H
6#define SPA_BLUETOOTH_TYPES_H
7
8#include <spa/param/bluetooth/audio.h>
9
10#ifdef __cplusplus
11 extern "C" {
12#endif
13
18
19#define SPA_TYPE_INFO_BluetoothAudioCodec SPA_TYPE_INFO_ENUM_BASE "BluetoothAudioCodec"
20#define SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE SPA_TYPE_INFO_BluetoothAudioCodec ":"
21
22 static const struct spa_type_info spa_type_bluetooth_audio_codec[] = {
23 /* A2DP */
24 { SPA_BLUETOOTH_AUDIO_CODEC_SBC, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "sbc", NULL },
25 { SPA_BLUETOOTH_AUDIO_CODEC_SBC_XQ, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "sbc_xq", NULL },
26 { SPA_BLUETOOTH_AUDIO_CODEC_MPEG, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "mpeg", NULL },
27 { SPA_BLUETOOTH_AUDIO_CODEC_AAC, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "aac", NULL },
28 { SPA_BLUETOOTH_AUDIO_CODEC_AAC_ELD, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "aac_eld", NULL },
29 { SPA_BLUETOOTH_AUDIO_CODEC_APTX, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "aptx", NULL },
30 { SPA_BLUETOOTH_AUDIO_CODEC_APTX_HD, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "aptx_hd", NULL },
31 { SPA_BLUETOOTH_AUDIO_CODEC_LDAC, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "ldac", NULL },
32 { SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "aptx_ll", NULL },
33 { SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL_DUPLEX, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "aptx_ll_duplex", NULL },
34 { SPA_BLUETOOTH_AUDIO_CODEC_FASTSTREAM, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "faststream", NULL },
35 { SPA_BLUETOOTH_AUDIO_CODEC_FASTSTREAM_DUPLEX, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "faststream_duplex", NULL },
36 { SPA_BLUETOOTH_AUDIO_CODEC_LC3PLUS_HR, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "lc3plus_hr", NULL },
37 { SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "opus_05", NULL },
38 { SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_51, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "opus_05_51", NULL },
39 { SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_71, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "opus_05_71", NULL },
40 { SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_DUPLEX, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "opus_05_duplex", NULL },
41 { SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_PRO, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "opus_05_pro", NULL },
42 { SPA_BLUETOOTH_AUDIO_CODEC_OPUS_G, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "opus_g", NULL },
43
44 { SPA_BLUETOOTH_AUDIO_CODEC_CVSD, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "cvsd", NULL },
45 { SPA_BLUETOOTH_AUDIO_CODEC_MSBC, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "msbc", NULL },
46 { SPA_BLUETOOTH_AUDIO_CODEC_LC3_SWB, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "lc3_swb", NULL },
47 { SPA_BLUETOOTH_AUDIO_CODEC_LC3_A127, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "lc3_a127", NULL },
48
49 { SPA_BLUETOOTH_AUDIO_CODEC_LC3, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "lc3", NULL },
50
51 { SPA_BLUETOOTH_AUDIO_CODEC_G722, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "g722", NULL },
52
53 { 0, 0, NULL, NULL },
54};
55
59
60#ifdef __cplusplus
61} /* extern "C" */
62#endif
63
64#endif /* SPA_BLUETOOTH_TYPES_H */
audio.h
spa/param/bluetooth/audio.h
spa_type_bluetooth_audio_codec
static const struct spa_type_info spa_type_bluetooth_audio_codec[]
Definition type-info.h:29
SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE
#define SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE
Definition type-info.h:27
SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05
@ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05
Definition audio.h:38
SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_71
@ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_71
Definition audio.h:40
SPA_BLUETOOTH_AUDIO_CODEC_MPEG
@ SPA_BLUETOOTH_AUDIO_CODEC_MPEG
Definition audio.h:27
SPA_BLUETOOTH_AUDIO_CODEC_LC3
@ SPA_BLUETOOTH_AUDIO_CODEC_LC3
Definition audio.h:52
SPA_BLUETOOTH_AUDIO_CODEC_CVSD
@ SPA_BLUETOOTH_AUDIO_CODEC_CVSD
Definition audio.h:46
SPA_BLUETOOTH_AUDIO_CODEC_MSBC
@ SPA_BLUETOOTH_AUDIO_CODEC_MSBC
Definition audio.h:47
SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL
@ SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL
Definition audio.h:33
SPA_BLUETOOTH_AUDIO_CODEC_FASTSTREAM_DUPLEX
@ SPA_BLUETOOTH_AUDIO_CODEC_FASTSTREAM_DUPLEX
Definition audio.h:36
SPA_BLUETOOTH_AUDIO_CODEC_APTX
@ SPA_BLUETOOTH_AUDIO_CODEC_APTX
Definition audio.h:30
SPA_BLUETOOTH_AUDIO_CODEC_LC3PLUS_HR
@ SPA_BLUETOOTH_AUDIO_CODEC_LC3PLUS_HR
Definition audio.h:37
SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_PRO
@ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_PRO
Definition audio.h:42
SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL_DUPLEX
@ SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL_DUPLEX
Definition audio.h:34
SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_51
@ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_51
Definition audio.h:39
SPA_BLUETOOTH_AUDIO_CODEC_G722
@ SPA_BLUETOOTH_AUDIO_CODEC_G722
Definition audio.h:55
SPA_BLUETOOTH_AUDIO_CODEC_AAC
@ SPA_BLUETOOTH_AUDIO_CODEC_AAC
Definition audio.h:28
SPA_BLUETOOTH_AUDIO_CODEC_OPUS_G
@ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_G
Definition audio.h:43
SPA_BLUETOOTH_AUDIO_CODEC_SBC
@ SPA_BLUETOOTH_AUDIO_CODEC_SBC
Definition audio.h:25
SPA_BLUETOOTH_AUDIO_CODEC_SBC_XQ
@ SPA_BLUETOOTH_AUDIO_CODEC_SBC_XQ
Definition audio.h:26
SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_DUPLEX
@ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_DUPLEX
Definition audio.h:41
SPA_BLUETOOTH_AUDIO_CODEC_APTX_HD
@ SPA_BLUETOOTH_AUDIO_CODEC_APTX_HD
Definition audio.h:31
SPA_BLUETOOTH_AUDIO_CODEC_LDAC
@ SPA_BLUETOOTH_AUDIO_CODEC_LDAC
Definition audio.h:32
SPA_BLUETOOTH_AUDIO_CODEC_LC3_SWB
@ SPA_BLUETOOTH_AUDIO_CODEC_LC3_SWB
Definition audio.h:48
SPA_BLUETOOTH_AUDIO_CODEC_AAC_ELD
@ SPA_BLUETOOTH_AUDIO_CODEC_AAC_ELD
Definition audio.h:29
SPA_BLUETOOTH_AUDIO_CODEC_FASTSTREAM
@ SPA_BLUETOOTH_AUDIO_CODEC_FASTSTREAM
Definition audio.h:35
SPA_BLUETOOTH_AUDIO_CODEC_LC3_A127
@ SPA_BLUETOOTH_AUDIO_CODEC_LC3_A127
Definition audio.h:49
SPA_TYPE_Int
@ SPA_TYPE_Int
Definition type.h:45
spa_type_info
Definition type.h:156