AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
AndroidApplicationAudioPipelineFactory.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 ACSDKAPPLICATIONAUDIOPIPELINEFACTORY_ANDROIDAPPLICATIONAUDIOPIPELINEFACTORY_H_
17 #define ACSDKAPPLICATIONAUDIOPIPELINEFACTORY_ANDROIDAPPLICATIONAUDIOPIPELINEFACTORY_H_
18 
19 #include <string>
20 
32 
33 namespace alexaClientSDK {
34 namespace acsdkApplicationAudioPipelineFactory {
35 
41 public:
54  static std::shared_ptr<acsdkApplicationAudioPipelineFactoryInterfaces::ApplicationAudioPipelineFactoryInterface>
56  const std::shared_ptr<avsCommon::sdkInterfaces::ChannelVolumeFactoryInterface>& channelVolumeFactory,
57  const std::shared_ptr<avsCommon::sdkInterfaces::SpeakerManagerInterface>& speakerManager,
58  const std::shared_ptr<acsdkEqualizerInterfaces::EqualizerRuntimeSetupInterface>& equalizerRuntimeSetup,
59  const std::shared_ptr<avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface>&
60  httpContentFetcherFactory,
61  const std::shared_ptr<acsdkShutdownManagerInterfaces::ShutdownNotifierInterface>& shutdownNotifier,
62  const std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESEngine>& openSLEngine,
63  const std::shared_ptr<captions::CaptionManagerInterface>& captionManager);
64 
67  std::shared_ptr<avsCommon::sdkInterfaces::ApplicationMediaInterfaces> createApplicationMediaInterfaces(
68  const std::string& name,
69  bool equalizerAvailable,
70  bool enableLiveMode,
71  bool isCaptionable,
73  std::function<int8_t(int8_t)> volumeCurve) override;
74 
75  std::shared_ptr<acsdkApplicationAudioPipelineFactoryInterfaces::PooledApplicationMediaInterfaces>
77  const std::string& name,
78  int numMediaPlayers,
79  bool equalizerAvailable,
80  bool enableLiveMode,
81  bool isCaptionable,
83  std::function<int8_t(int8_t)> volumeCurve) override;
85 
86 private:
98  const std::shared_ptr<avsCommon::sdkInterfaces::ChannelVolumeFactoryInterface>& channelVolumeFactory,
99  const std::shared_ptr<avsCommon::sdkInterfaces::SpeakerManagerInterface>& speakerManager,
100  const std::shared_ptr<acsdkEqualizerInterfaces::EqualizerRuntimeSetupInterface>& equalizerRuntimeSetup,
101  const std::shared_ptr<avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface>&
102  httpContentFetcherFactory,
103  const std::shared_ptr<acsdkShutdownManagerInterfaces::ShutdownNotifierInterface>& shutdownNotifier,
104  const std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESEngine>& openSlEngine,
105  const std::shared_ptr<captions::CaptionManagerInterface>& captionManager);
106 
108  std::shared_ptr<avsCommon::sdkInterfaces::SpeakerManagerInterface> m_speakerManager;
109 
111  std::shared_ptr<avsCommon::sdkInterfaces::ChannelVolumeFactoryInterface> m_channelVolumeFactory;
112 
114  std::shared_ptr<avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface> m_httpContentFetcherFactory;
115 
117  std::shared_ptr<acsdkShutdownManagerInterfaces::ShutdownNotifierInterface> m_shutdownNotifier;
118 
120  std::shared_ptr<acsdkEqualizerInterfaces::EqualizerRuntimeSetupInterface> m_equalizerRuntimeSetup;
121 
123  std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESEngine> m_openSlEngine;
124 
126  std::shared_ptr<captions::CaptionManagerInterface> m_captionManager;
127 };
128 
129 } // namespace acsdkApplicationAudioPipelineFactory
130 } // namespace alexaClientSDK
131 
132 #endif // ACSDKAPPLICATIONAUDIOPIPELINEFACTORY_ANDROIDAPPLICATIONAUDIOPIPELINEFACTORY_H_
::std::string string
Definition: gtest-port.h:1097
std::shared_ptr< acsdkApplicationAudioPipelineFactoryInterfaces::PooledApplicationMediaInterfaces > createPooledApplicationMediaInterfaces(const std::string &name, int numMediaPlayers, bool equalizerAvailable, bool enableLiveMode, bool isCaptionable, avsCommon::sdkInterfaces::ChannelVolumeInterface::Type channelVolumeType, std::function< int8_t(int8_t)> volumeCurve) override
std::shared_ptr< avsCommon::sdkInterfaces::ApplicationMediaInterfaces > createApplicationMediaInterfaces(const std::string &name, bool equalizerAvailable, bool enableLiveMode, bool isCaptionable, avsCommon::sdkInterfaces::ChannelVolumeInterface::Type channelVolumeType, std::function< int8_t(int8_t)> volumeCurve) override
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
static std::shared_ptr< acsdkApplicationAudioPipelineFactoryInterfaces::ApplicationAudioPipelineFactoryInterface > createApplicationAudioPipelineFactoryInterface(const std::shared_ptr< avsCommon::sdkInterfaces::ChannelVolumeFactoryInterface > &channelVolumeFactory, const std::shared_ptr< avsCommon::sdkInterfaces::SpeakerManagerInterface > &speakerManager, const std::shared_ptr< acsdkEqualizerInterfaces::EqualizerRuntimeSetupInterface > &equalizerRuntimeSetup, const std::shared_ptr< avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface > &httpContentFetcherFactory, const std::shared_ptr< acsdkShutdownManagerInterfaces::ShutdownNotifierInterface > &shutdownNotifier, const std::shared_ptr< applicationUtilities::androidUtilities::AndroidSLESEngine > &openSLEngine, const std::shared_ptr< captions::CaptionManagerInterface > &captionManager)

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