15 #ifndef ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_ANDROIDUTILITIES_INCLUDE_ANDROIDUTILITIES_ANDROIDSLESBUFFERQUEUE_H_ 16 #define ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_ANDROIDUTILITIES_INCLUDE_ANDROIDUTILITIES_ANDROIDSLESBUFFERQUEUE_H_ 21 #include <SLES/OpenSLES_Android.h> 27 namespace applicationUtilities {
28 namespace androidUtilities {
50 static std::unique_ptr<AndroidSLESBufferQueue>
create(
51 std::shared_ptr<AndroidSLESObject> queueObject,
52 std::shared_ptr<avsCommon::avs::AudioInputStream::Writer> writer);
91 std::shared_ptr<AndroidSLESObject> slObject,
92 SLAndroidSimpleBufferQueueItf bufferQueue,
93 std::shared_ptr<avsCommon::avs::AudioInputStream::Writer> writer);
96 bool enqueueBufferLocked();
99 static constexpr
size_t BUFFER_SIZE{8192u};
106 std::shared_ptr<AndroidSLESObject> m_slObject;
109 SLAndroidSimpleBufferQueueItf m_queueInterface;
116 std::shared_ptr<avsCommon::avs::AudioInputStream::Writer> m_writer;
126 #endif // ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_ANDROIDUTILITIES_INCLUDE_ANDROIDUTILITIES_ANDROIDSLESBUFFERQUEUE_H_
Definition: AndroidSLESBufferQueue.h:41
static constexpr uint32_t NUMBER_OF_BUFFERS
The number of buffers to use.
Definition: AndroidSLESBufferQueue.h:80
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
~AndroidSLESBufferQueue()
static std::unique_ptr< AndroidSLESBufferQueue > create(std::shared_ptr< AndroidSLESObject > queueObject, std::shared_ptr< avsCommon::avs::AudioInputStream::Writer > writer)