File indexing completed on 2024-12-08 12:15:31
0001 /* 0002 * BluezQt - Asynchronous Bluez wrapper library 0003 * 0004 * SPDX-FileCopyrightText: 2018 Manuel Weichselbaumer <mincequi@web.de> 0005 * 0006 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #include "a2dp-codecs.h" 0010 0011 /* Currently our capabilities are limited to the most common use cases. 0012 iOS has a fixed stream configuration anyway (for SBC and AAC). */ 0013 const a2dp_sbc_t sbcCapabilities = { 0014 .frequency = 0015 /*SBC_SAMPLING_FREQ_16000 | 0016 SBC_SAMPLING_FREQ_32000 |*/ 0017 SBC_SAMPLING_FREQ_44100 | 0018 SBC_SAMPLING_FREQ_48000, 0019 .channel_mode = 0020 /*SBC_CHANNEL_MODE_MONO | 0021 SBC_CHANNEL_MODE_DUAL_CHANNEL |*/ 0022 SBC_CHANNEL_MODE_STEREO | 0023 SBC_CHANNEL_MODE_JOINT_STEREO, 0024 .block_length = 0025 SBC_BLOCK_LENGTH_4 | 0026 SBC_BLOCK_LENGTH_8 | 0027 SBC_BLOCK_LENGTH_12 | 0028 SBC_BLOCK_LENGTH_16, 0029 .subbands = 0030 SBC_SUBBANDS_4 | 0031 SBC_SUBBANDS_8, 0032 .allocation_method = 0033 SBC_ALLOCATION_SNR | 0034 SBC_ALLOCATION_LOUDNESS, 0035 .min_bitpool = MIN_BITPOOL, 0036 .max_bitpool = MAX_BITPOOL, 0037 }; 0038 0039 const a2dp_aac_t aacCapabilities = { 0040 .object_type = 0041 AAC_OBJECT_TYPE_MPEG2_AAC_LC | 0042 AAC_OBJECT_TYPE_MPEG4_AAC_LC, 0043 /*AAC_OBJECT_TYPE_MPEG4_AAC_LTP | 0044 AAC_OBJECT_TYPE_MPEG4_AAC_SCA, */ 0045 AAC_INIT_FREQUENCY( 0046 /*AAC_SAMPLING_FREQ_8000 | 0047 AAC_SAMPLING_FREQ_11025 | 0048 AAC_SAMPLING_FREQ_12000 | 0049 AAC_SAMPLING_FREQ_16000 | 0050 AAC_SAMPLING_FREQ_22050 | 0051 AAC_SAMPLING_FREQ_24000 | 0052 AAC_SAMPLING_FREQ_32000 |*/ 0053 AAC_SAMPLING_FREQ_44100 | 0054 AAC_SAMPLING_FREQ_48000) 0055 /*AAC_SAMPLING_FREQ_64000 | 0056 AAC_SAMPLING_FREQ_88200 | 0057 AAC_SAMPLING_FREQ_96000)*/ 0058 .channels = 0059 /*AAC_CHANNELS_1 |*/ 0060 AAC_CHANNELS_2, 0061 .vbr = 1, 0062 AAC_INIT_BITRATE(0xFFFF) 0063 };