AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Protected Member Functions | Protected Attributes | List of all members
alexaClientSDK::applicationUtilities::androidUtilities::test::AndroidSLESMicrophoneTest Class Reference
Inheritance diagram for alexaClientSDK::applicationUtilities::androidUtilities::test::AndroidSLESMicrophoneTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::applicationUtilities::androidUtilities::test::AndroidSLESMicrophoneTest:
Collaboration graph
[legend]

Protected Member Functions

virtual void TearDown ()
 
virtual void SetUp ()
 

Protected Attributes

std::shared_ptr< avsCommon::avs::AudioInputStreamm_stream
 Pointer to the audio input stream. More...
 
std::unique_ptr< AndroidSLESMicrophonem_mic
 Object under test. More...
 
std::shared_ptr< avsCommon::avs::AudioInputStream::Reader > m_reader
 Pointer to an audio input stream reader used to check writting results. More...
 
std::array< uint16_t, TEST_BUFFER_SIZEm_testBuffer
 Test buffer that will be used by the reader. More...
 

Detailed Description

This class tests the entire AndroidSLESMicrophone together with the OpenSL ES NDK implementation.

Member Function Documentation

◆ SetUp()

virtual void alexaClientSDK::applicationUtilities::androidUtilities::test::AndroidSLESMicrophoneTest::SetUp ( )
inlineprotectedvirtual

Create android microphone.

◆ TearDown()

virtual void alexaClientSDK::applicationUtilities::androidUtilities::test::AndroidSLESMicrophoneTest::TearDown ( )
inlineprotectedvirtual

Reset all shared pointers.

Member Data Documentation

◆ m_mic

std::unique_ptr<AndroidSLESMicrophone> alexaClientSDK::applicationUtilities::androidUtilities::test::AndroidSLESMicrophoneTest::m_mic
protected

Object under test.

◆ m_reader

std::shared_ptr<avsCommon::avs::AudioInputStream::Reader> alexaClientSDK::applicationUtilities::androidUtilities::test::AndroidSLESMicrophoneTest::m_reader
protected

Pointer to an audio input stream reader used to check writting results.

◆ m_stream

std::shared_ptr<avsCommon::avs::AudioInputStream> alexaClientSDK::applicationUtilities::androidUtilities::test::AndroidSLESMicrophoneTest::m_stream
protected

Pointer to the audio input stream.

◆ m_testBuffer

std::array<uint16_t, TEST_BUFFER_SIZE> alexaClientSDK::applicationUtilities::androidUtilities::test::AndroidSLESMicrophoneTest::m_testBuffer
protected

Test buffer that will be used by the reader.


The documentation for this class was generated from the following file:

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