15 #ifndef ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_ANDROIDUTILITIES_INCLUDE_ANDROIDUTILITIES_ANDROIDSLESENGINE_H_ 16 #define ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_ANDROIDUTILITIES_INCLUDE_ANDROIDUTILITIES_ANDROIDSLESENGINE_H_ 18 #include <SLES/OpenSLES.h> 25 namespace applicationUtilities {
26 namespace androidUtilities {
28 class AndroidSLESMicrophone;
45 static std::shared_ptr<AndroidSLESEngine>
create();
54 std::shared_ptr<avsCommon::avs::AudioInputStream> stream);
79 std::unique_ptr<AndroidSLESObject>
createPlayer(SLDataSource& source, SLDataSink& sink,
bool requireEqualizer)
101 AndroidSLESEngine(std::unique_ptr<AndroidSLESObject>
object, SLEngineItf engine);
104 std::unique_ptr<AndroidSLESObject> m_object;
107 SLEngineItf m_engine;
110 static std::atomic_flag m_created;
117 #endif // ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_ANDROIDUTILITIES_INCLUDE_ANDROIDUTILITIES_ANDROIDSLESENGINE_H_
std::unique_ptr< AndroidSLESMicrophone > createAndroidMicrophone(std::shared_ptr< avsCommon::avs::AudioInputStream > stream)
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: AndroidSLESEngine.h:38
std::unique_ptr< AndroidSLESObject > createPlayer(SLDataSource &source, SLDataSink &sink, bool requireEqualizer) const
std::unique_ptr< AndroidSLESObject > createOutputMix() const
std::unique_ptr< AndroidSLESObject > createAudioRecorder()
static std::shared_ptr< AndroidSLESEngine > create()