~aleteoryx/muditaos

ref: 3d13f10839e218b65dc247f03a15fb5dfa87bc8b muditaos/module-bluetooth/Bluetooth/interface/profiles/A2DP/AVDTP.cpp -rw-r--r-- 1.0 KiB
3d13f108 — Bartosz [MOS-668] Modify USB notifications logging 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "AVDTP.hpp"

namespace bluetooth
{
    AVDTP::SbcConfiguration AVDTP::sbcConfig;
    btstack_sbc_encoder_state_t AVDTP::sbcEncoderState;
    std::array<uint8_t, 4> AVDTP::sbcCodecConfiguration;
    int AVDTP::sampleRate = AVDTP::defaultSampleRate;

    void AVDTP::dumpSbcConfiguration()
    {
        LOG_INFO("Received media codec configuration:");
        LOG_INFO("    - numChannels: %d", sbcConfig.numChannels);
        LOG_INFO("    - samplingFrequency: %d", sbcConfig.samplingFrequency);
        LOG_INFO("    - channelMode: %d", sbcConfig.channelMode);
        LOG_INFO("    - blockLength: %d", sbcConfig.blockLength);
        LOG_INFO("    - subbands: %d", sbcConfig.subbands);
        LOG_INFO("    - allocationMethod: %d", sbcConfig.allocationMethod);
        LOG_INFO("    - bitpool_value [%d, %d] ", sbcConfig.minBitpoolValue, sbcConfig.maxBitpoolValue);
    }
} // namespace Bt