AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Macros | Functions | Variables
MediaEndpoint.cpp File Reference
#include <AVSCommon/Utils/Logger/Logger.h>
#include "BlueZ/BlueZConstants.h"
#include "BlueZ/MediaEndpoint.h"
#include <bluez-alsa/a2dp-rtp.h>
#include <poll.h>
Include dependency graph for MediaEndpoint.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::bluetoothImplementations
 
 alexaClientSDK::bluetoothImplementations::blueZ
 

Macros

#define LX(event)   alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
 

Functions

static const std::chrono::milliseconds alexaClientSDK::bluetoothImplementations::blueZ::POLL_TIMEOUT_MS (100)
 
static uint8_t alexaClientSDK::bluetoothImplementations::blueZ::selectCompatibleConfig (uint8_t caps, uint8_t mask, int width)
 

Variables

constexpr const char * alexaClientSDK::bluetoothImplementations::blueZ::DBUS_ERROR_FAILED = "org.bluez.Error.Rejected"
 
constexpr const char * alexaClientSDK::bluetoothImplementations::blueZ::MEDIAENDPOINT1_SETCONFIGURATION_METHOD_NAME = "SetConfiguration"
 Name of the BlueZ MediaEndpoint1::SetConfiguration method. More...
 
constexpr const char * alexaClientSDK::bluetoothImplementations::blueZ::MEDIAENDPOINT1_SELECTCONFIGURATION_METHOD_NAME = "SelectConfiguration"
 Name of the BlueZ MediaEndpoint1::SelectConfiguration method. More...
 
constexpr const char * alexaClientSDK::bluetoothImplementations::blueZ::MEDIAENDPOINT1_CLEARCONFIGURATION_METHOD_NAME = "ClearConfiguration"
 Name of the BlueZ MediaEndpoint1::ClearConfiguration method. More...
 
constexpr const char * alexaClientSDK::bluetoothImplementations::blueZ::MEDIAENDPOINT1_RELEASE_METHOD_NAME = "Release"
 Name of the BlueZ MediaEndpoint1::Release method. More...
 
constexpr int alexaClientSDK::bluetoothImplementations::blueZ::CHECK_4_OPTIONS = 4
 selectCompatibleConfig() should check 4 options More...
 
constexpr int alexaClientSDK::bluetoothImplementations::blueZ::CHECK_2_OPTIONS = 2
 selectCompatibleConfig() should check 2 options More...
 
constexpr uint8_t alexaClientSDK::bluetoothImplementations::blueZ::FIRST_FREQUENCY = 0x10
 First frequency mask to be used in selectCompatibleConfig(). More...
 
constexpr uint8_t alexaClientSDK::bluetoothImplementations::blueZ::FIRST_CHANNEL_MODE = 0x01
 First channel mode mask to be used in selectCompatibleConfig(). More...
 
constexpr uint8_t alexaClientSDK::bluetoothImplementations::blueZ::FIRST_BLOCK_LENGTH = 0x10
 First block length mask to be used in selectCompatibleConfig(). More...
 
constexpr uint8_t alexaClientSDK::bluetoothImplementations::blueZ::FIRST_SUBBANDS = 0x04
 First subbands mask to be used in selectCompatibleConfig(). More...
 
constexpr uint8_t alexaClientSDK::bluetoothImplementations::blueZ::FIRST_ALLOCATION_METHOD = 0x01
 First allocation method mask to be used in selectCompatibleConfig(). More...
 
constexpr int alexaClientSDK::bluetoothImplementations::blueZ::SAMPLING_RATE_16000 = 16000
 Sampling rate 16000. More...
 
constexpr int alexaClientSDK::bluetoothImplementations::blueZ::SAMPLING_RATE_32000 = 32000
 Sampling rate 32000. More...
 
constexpr int alexaClientSDK::bluetoothImplementations::blueZ::SAMPLING_RATE_44100 = 44100
 Sampling rate 44100. More...
 
constexpr int alexaClientSDK::bluetoothImplementations::blueZ::SAMPLING_RATE_48000 = 48000
 Sampling rate 48000. More...
 
constexpr size_t alexaClientSDK::bluetoothImplementations::blueZ::MAX_SANE_FRAME_LENGTH = 200
 Max sane frame length for SBC codec. More...
 
constexpr size_t alexaClientSDK::bluetoothImplementations::blueZ::MIN_SANE_FRAME_LENGTH = 1
 Min sane frame length for SBC codec. More...
 
constexpr size_t alexaClientSDK::bluetoothImplementations::blueZ::MAX_SANE_CODE_SIZE = MAX_SANE_FRAME_LENGTH * 32
 Max sane code size for SBC codec. Max compression ratio for 8-band settings. More...
 
constexpr size_t alexaClientSDK::bluetoothImplementations::blueZ::MIN_SANE_CODE_SIZE = 1
 Min sane code size for SBC codec. More...
 
static const std::string alexaClientSDK::bluetoothImplementations::blueZ::TAG {"MediaEndpoint"}
 
static const gchar alexaClientSDK::bluetoothImplementations::blueZ::mediaEndpointIntrospectionXml []
 

Macro Definition Documentation

◆ LX

#define LX (   event)    alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0