Alexa Auto SDK  2.0.0
EqualizerController.h
1 /*
2  * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef AACE_ALEXA_EQUALIZER_CONTROLLER_H
17 #define AACE_ALEXA_EQUALIZER_CONTROLLER_H
18 
19 #include "AACE/Core/PlatformInterface.h"
20 #include "AlexaEngineInterfaces.h"
21 
24 namespace aace {
25 namespace alexa {
26 
44 protected:
45  EqualizerController() = default;
46 
47 public:
48  virtual ~EqualizerController();
49 
56 
64 
74  virtual void setBandLevels( const std::vector<EqualizerBandLevel>& bandLevels ) = 0;
75 
82  virtual std::vector<EqualizerBandLevel> getBandLevels() = 0;
83 
90  void localSetBandLevels( const std::vector<EqualizerBandLevel>& bandLevels );
91 
100  void localAdjustBandLevels( const std::vector<EqualizerBandLevel>& bandAdjustments );
101 
107  void localResetBands( const std::vector<EqualizerBand>& bands = {} );
108 
115  void setEngineInterface(
116  std::shared_ptr<aace::alexa::EqualizerControllerEngineInterface> equalizerControllerEngineInterface );
117 
118 private:
123  std::weak_ptr<aace::alexa::EqualizerControllerEngineInterface> m_equalizerControllerEngineInterface;
124 };
125 
126 } // aace::alexa
127 } // aace
128 
129 #endif // AACE_ALEXA_EQUALIZER_CONTROLLER_H
std::pair< EqualizerBand, int > EqualizerBandLevel
Definition: AlexaEngineInterfaces.h:439
void localAdjustBandLevels(const std::vector< EqualizerBandLevel > &bandAdjustments)
Definition: EqualizerController.cpp:29
Definition: PlatformInterface.h:29
void localSetBandLevels(const std::vector< EqualizerBandLevel > &bandLevels)
Definition: EqualizerController.cpp:23
Definition: AddressBook.h:26
void localResetBands(const std::vector< EqualizerBand > &bands={})
Definition: EqualizerController.cpp:35
virtual void setBandLevels(const std::vector< EqualizerBandLevel > &bandLevels)=0
Definition: EqualizerController.h:43
aace::alexa::EqualizerControllerEngineInterface::EqualizerBandLevel EqualizerBandLevel
Definition: EqualizerController.h:63
virtual std::vector< EqualizerBandLevel > getBandLevels()=0
EqualizerBand
Definition: AlexaEngineInterfaces.h:426

Alexa Auto SDK 2.0.0 - Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0