1 | /* |
2 | * BluezQt - Asynchronous Bluez wrapper library |
3 | * |
4 | * SPDX-FileCopyrightText: 2018 Manuel Weichselbaumer <mincequi@web.de> |
5 | * |
6 | * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
7 | */ |
8 | |
9 | #include "a2dp-codecs.h" |
10 | |
11 | /* Currently our capabilities are limited to the most common use cases. |
12 | iOS has a fixed stream configuration anyway (for SBC and AAC). */ |
13 | const a2dp_sbc_t sbcCapabilities = { |
14 | .frequency = |
15 | /*SBC_SAMPLING_FREQ_16000 | |
16 | SBC_SAMPLING_FREQ_32000 |*/ |
17 | SBC_SAMPLING_FREQ_44100 | |
18 | SBC_SAMPLING_FREQ_48000, |
19 | .channel_mode = |
20 | /*SBC_CHANNEL_MODE_MONO | |
21 | SBC_CHANNEL_MODE_DUAL_CHANNEL |*/ |
22 | SBC_CHANNEL_MODE_STEREO | |
23 | SBC_CHANNEL_MODE_JOINT_STEREO, |
24 | .block_length = |
25 | SBC_BLOCK_LENGTH_4 | |
26 | SBC_BLOCK_LENGTH_8 | |
27 | SBC_BLOCK_LENGTH_12 | |
28 | SBC_BLOCK_LENGTH_16, |
29 | .subbands = |
30 | SBC_SUBBANDS_4 | |
31 | SBC_SUBBANDS_8, |
32 | .allocation_method = |
33 | SBC_ALLOCATION_SNR | |
34 | SBC_ALLOCATION_LOUDNESS, |
35 | .min_bitpool = MIN_BITPOOL, |
36 | .max_bitpool = MAX_BITPOOL, |
37 | }; |
38 | |
39 | const a2dp_aac_t aacCapabilities = { |
40 | .object_type = |
41 | AAC_OBJECT_TYPE_MPEG2_AAC_LC | |
42 | AAC_OBJECT_TYPE_MPEG4_AAC_LC, |
43 | /*AAC_OBJECT_TYPE_MPEG4_AAC_LTP | |
44 | AAC_OBJECT_TYPE_MPEG4_AAC_SCA, */ |
45 | AAC_INIT_FREQUENCY( |
46 | /*AAC_SAMPLING_FREQ_8000 | |
47 | AAC_SAMPLING_FREQ_11025 | |
48 | AAC_SAMPLING_FREQ_12000 | |
49 | AAC_SAMPLING_FREQ_16000 | |
50 | AAC_SAMPLING_FREQ_22050 | |
51 | AAC_SAMPLING_FREQ_24000 | |
52 | AAC_SAMPLING_FREQ_32000 |*/ |
53 | AAC_SAMPLING_FREQ_44100 | |
54 | AAC_SAMPLING_FREQ_48000) |
55 | /*AAC_SAMPLING_FREQ_64000 | |
56 | AAC_SAMPLING_FREQ_88200 | |
57 | AAC_SAMPLING_FREQ_96000)*/ |
58 | .channels = |
59 | /*AAC_CHANNELS_1 |*/ |
60 | AAC_CHANNELS_2, |
61 | .vbr = 1, |
62 | AAC_INIT_BITRATE(0xFFFF) |
63 | }; |
64 | |