15 #ifndef ALEXA_CLIENT_SDK_MEDIAPLAYER_ANDROIDSLESMEDIAPLAYER_INCLUDE_ANDROIDSLESMEDIAPLAYER_ANDROIDSLESSPEAKER_H_ 16 #define ALEXA_CLIENT_SDK_MEDIAPLAYER_ANDROIDSLESMEDIAPLAYER_INCLUDE_ANDROIDSLESMEDIAPLAYER_ANDROIDSLESSPEAKER_H_ 22 #include <SLES/OpenSLES.h> 29 namespace mediaPlayer {
48 static std::unique_ptr<AndroidSLESSpeaker>
create(
49 std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESEngine> engine,
50 std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESObject> outputMixObject,
51 std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESObject> speakerObject);
56 bool setMute(
bool mute)
override;
70 std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESEngine> engine,
71 std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESObject> outputMixObject,
72 std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESObject> speakerObject,
73 SLVolumeItf volumeInterface);
80 std::pair<bool, int8_t> getAvsVolume()
const;
88 int8_t toAvsVolume(SLmillibel deviceVolume)
const;
96 SLmillibel toDeviceVolume(int8_t avsVolume)
const;
100 std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESEngine> m_engine;
103 std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESObject> m_outputMixObject;
107 std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESObject> m_speakerObject;
110 SLVolumeItf m_volumeInterface;
117 #endif // ALEXA_CLIENT_SDK_MEDIAPLAYER_ANDROIDSLESMEDIAPLAYER_INCLUDE_ANDROIDSLESMEDIAPLAYER_ANDROIDSLESSPEAKER_H_
Definition: SpeakerInterface.h:33
Definition: SpeakerInterface.h:42
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36