Loading...
Searching...
No Matches
type-info.h
Go to the documentation of this file.
/* Simple Plugin API */
/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
/* SPDX-License-Identifier: MIT */
#ifndef SPA_BLUETOOTH_TYPES_H
#define SPA_BLUETOOTH_TYPES_H
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/param/bluetooth/audio.h>
#define SPA_TYPE_INFO_BluetoothAudioCodec SPA_TYPE_INFO_ENUM_BASE "BluetoothAudioCodec"
#define SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE SPA_TYPE_INFO_BluetoothAudioCodec ":"
static const struct spa_type_info spa_type_bluetooth_audio_codec[] = {
/* A2DP */
{ SPA_BLUETOOTH_AUDIO_CODEC_SBC, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "sbc", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_SBC_XQ, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "sbc_xq", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_MPEG, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "mpeg", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_AAC, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "aac", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_APTX, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "aptx", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_APTX_HD, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "aptx_hd", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_LDAC, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "ldac", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "aptx_ll", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL_DUPLEX, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "aptx_ll_duplex", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_FASTSTREAM, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "faststream", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_FASTSTREAM_DUPLEX, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "faststream_duplex", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_LC3PLUS_HR, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "lc3plus_hr", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "opus_05", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_51, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "opus_05_51", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_71, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "opus_05_71", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_DUPLEX, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "opus_05_duplex", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_PRO, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "opus_05_pro", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_CVSD, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "cvsd", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_MSBC, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "msbc", NULL },
{ SPA_BLUETOOTH_AUDIO_CODEC_LC3, SPA_TYPE_Int, SPA_TYPE_INFO_BLUETOOTH_AUDIO_CODEC_BASE "lc3", NULL },
{ 0, 0, NULL, NULL },
};
#ifdef __cplusplus
} /* extern "C" */
#endif
#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:37
SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_71
@ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_71
Definition audio.h:39
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:48
SPA_BLUETOOTH_AUDIO_CODEC_CVSD
@ SPA_BLUETOOTH_AUDIO_CODEC_CVSD
Definition audio.h:44
SPA_BLUETOOTH_AUDIO_CODEC_MSBC
@ SPA_BLUETOOTH_AUDIO_CODEC_MSBC
Definition audio.h:45
SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL
@ SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL
Definition audio.h:32
SPA_BLUETOOTH_AUDIO_CODEC_FASTSTREAM_DUPLEX
@ SPA_BLUETOOTH_AUDIO_CODEC_FASTSTREAM_DUPLEX
Definition audio.h:35
SPA_BLUETOOTH_AUDIO_CODEC_APTX
@ SPA_BLUETOOTH_AUDIO_CODEC_APTX
Definition audio.h:29
SPA_BLUETOOTH_AUDIO_CODEC_LC3PLUS_HR
@ SPA_BLUETOOTH_AUDIO_CODEC_LC3PLUS_HR
Definition audio.h:36
SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_PRO
@ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_PRO
Definition audio.h:41
SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL_DUPLEX
@ SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL_DUPLEX
Definition audio.h:33
SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_51
@ SPA_BLUETOOTH_AUDIO_CODEC_OPUS_05_51
Definition audio.h:38
SPA_BLUETOOTH_AUDIO_CODEC_AAC
@ SPA_BLUETOOTH_AUDIO_CODEC_AAC
Definition audio.h:28
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:40
SPA_BLUETOOTH_AUDIO_CODEC_APTX_HD
@ SPA_BLUETOOTH_AUDIO_CODEC_APTX_HD
Definition audio.h:30
SPA_BLUETOOTH_AUDIO_CODEC_LDAC
@ SPA_BLUETOOTH_AUDIO_CODEC_LDAC
Definition audio.h:31
SPA_BLUETOOTH_AUDIO_CODEC_FASTSTREAM
@ SPA_BLUETOOTH_AUDIO_CODEC_FASTSTREAM
Definition audio.h:34
SPA_TYPE_Int
@ SPA_TYPE_Int
Definition type.h:34
spa_type_info
Definition type.h:143
spa_type_info::type
uint32_t type
Definition type.h:144