AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
SpeakerManagerObserverInterface.h
Go to the documentation of this file.
1 /*
2  * Copyright 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 ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_SPEAKERMANAGEROBSERVERINTERFACE_H_
17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_SPEAKERMANAGEROBSERVERINTERFACE_H_
18 
20 
21 namespace alexaClientSDK {
22 namespace avsCommon {
23 namespace sdkInterfaces {
24 
33 public:
35  enum class Source {
36  // The call occurred as a result of an AVS Directive.
37  DIRECTIVE,
38  // The call occurred as a result of a local API call.
39  LOCAL_API,
40  // The call occurred from an external client
42  };
43 
51  virtual void onSpeakerSettingsChanged(
52  const Source& source,
54  const SpeakerInterface::SpeakerSettings& settings) = 0;
55 
59  virtual ~SpeakerManagerObserverInterface() = default;
60 };
61 
69 inline std::ostream& operator<<(std::ostream& stream, SpeakerManagerObserverInterface::Source source) {
70  switch (source) {
72  stream << "DIRECTIVE";
73  return stream;
75  stream << "LOCAL_API";
76  return stream;
78  stream << "EXTERNAL_CLIENT";
79  return stream;
80  }
81  stream << "UNKNOWN";
82  return stream;
83 }
84 
85 } // namespace sdkInterfaces
86 } // namespace avsCommon
87 } // namespace alexaClientSDK
88 
89 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_SPEAKERMANAGEROBSERVERINTERFACE_H_
virtual void onSpeakerSettingsChanged(const Source &source, const ChannelVolumeInterface::Type &type, const SpeakerInterface::SpeakerSettings &settings)=0
std::ostream & operator<<(std::ostream &stream, const AudioInputProcessorObserverInterface::State &state)
Definition: AudioInputProcessorObserverInterface.h:94
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
type
Definition: upload.py:443
Source
Indicates whether the source of the call is from an AVS Directive or through a Local API call...
Definition: SpeakerManagerObserverInterface.h:35

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