15 #ifndef ALEXA_CLIENT_SDK_MEDIAPLAYER_ANDROIDSLESMEDIAPLAYER_INCLUDE_ANDROIDSLESMEDIAPLAYER_ANDROIDSLESMEDIAQUEUE_H_ 16 #define ALEXA_CLIENT_SDK_MEDIAPLAYER_ANDROIDSLESMEDIAPLAYER_INCLUDE_ANDROIDSLESMEDIAPLAYER_ANDROIDSLESMEDIAQUEUE_H_ 24 #include <SLES/OpenSLES_Android.h> 33 namespace mediaPlayer {
68 using EventCallback = std::function<void(QueueEvent event, const std::string& reason)>;
80 static std::unique_ptr<AndroidSLESMediaQueue>
create(
81 std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESObject> queueObject,
82 std::unique_ptr<DecoderInterface> decoder,
130 std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESObject> queueObject,
131 SLAndroidSimpleBufferQueueItf bufferQueue,
132 std::unique_ptr<DecoderInterface> decoder,
159 std::shared_ptr<applicationUtilities::androidUtilities::AndroidSLESObject> m_slObject;
162 SLAndroidSimpleBufferQueueItf m_queueInterface;
168 std::vector<size_t> m_bufferSizes;
171 std::unique_ptr<DecoderInterface> m_decoder;
186 std::atomic<size_t> m_bufferedWords;
189 std::atomic<size_t> m_playedWords;
196 #endif // ALEXA_CLIENT_SDK_MEDIAPLAYER_ANDROIDSLESMEDIAPLAYER_INCLUDE_ANDROIDSLESMEDIAPLAYER_ANDROIDSLESMEDIAQUEUE_H_
Single-thread executor implementation.
Definition: Executor.h:45
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36