AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Macros | Functions | Variables
AndroidSLESSpeaker.cpp File Reference
#include <algorithm>
#include <cmath>
#include <AVSCommon/AVS/SpeakerConstants/SpeakerConstants.h>
#include "AndroidSLESMediaPlayer/AndroidSLESSpeaker.h"
Include dependency graph for AndroidSLESSpeaker.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::mediaPlayer
 
 alexaClientSDK::mediaPlayer::android
 

Macros

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

Functions

static const std::string TAG ("AndroidSLESSpeaker")
 String to identify log entries originating from this file. More...
 

Variables

const float alexaClientSDK::mediaPlayer::android::CONVERSION_FACTOR = 20.0
 Conversion factor used to convert the avs volume level to millibel. More...
 
static const auto alexaClientSDK::mediaPlayer::android::AVS_VOLUME_RANGE = AVS_SET_VOLUME_MAX - AVS_SET_VOLUME_MIN
 The AVS volume range. More...
 
static constexpr SLmillibel alexaClientSDK::mediaPlayer::android::DEVICE_MAX_VOLUME = 0
 Assert that the AVS maximum volume is greater than the minimum volume. More...
 
static constexpr SLmillibel alexaClientSDK::mediaPlayer::android::DEVICE_MIN_VOLUME = SL_MILLIBEL_MIN
 There is no predefined minimum value. Use the minimum value allowed by the SLmillibel type. More...
 

Macro Definition Documentation

◆ LX

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

Create a LogEntry using this file's TAG and the specified event string.

Parameters
Theevent string for this LogEntry.

Function Documentation

◆ TAG()

static const std::string TAG ( "AndroidSLESSpeaker"  )
static

String to identify log entries originating from this file.

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