![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Mock class that implements the BlockAudioEncoderInterface
.
More...
Public Member Functions | |
MOCK_METHOD1 (init, bool(alexaClientSDK::avsCommon::utils::AudioFormat inputFormat)) | |
MOCK_METHOD0 (getInputFrameSize, size_t()) | |
MOCK_METHOD0 (getOutputFrameSize, size_t()) | |
MOCK_METHOD0 (requiresFullyRead, bool()) | |
MOCK_METHOD0 (getAudioFormat, alexaClientSDK::avsCommon::utils::AudioFormat()) | |
MOCK_METHOD0 (getAVSFormatName, std::string()) | |
MOCK_METHOD1 (start, bool(Bytes &)) | |
MOCK_METHOD3 (processSamples, bool(Bytes::const_iterator, Bytes::const_iterator, Bytes &)) | |
MOCK_METHOD1 (flush, bool(Bytes &)) | |
MOCK_METHOD0 (close, void()) | |
![]() | |
virtual bool | init (avsCommon::utils::AudioFormat inputFormat)=0 |
Pre-initialize the encoder. More... | |
virtual size_t | getInputFrameSize ()=0 |
virtual size_t | getOutputFrameSize ()=0 |
Provide maximum output frame size. More... | |
virtual bool | requiresFullyRead ()=0 |
Return if input must contain full frame. More... | |
virtual avsCommon::utils::AudioFormat | getAudioFormat ()=0 |
Return output audio format. More... | |
virtual std::string | getAVSFormatName ()=0 |
AVS format name for encoded audio. More... | |
virtual bool | start (Bytes &preamble)=0 |
Start the encoding session. More... | |
virtual bool | processSamples (Bytes::const_iterator begin, Bytes::const_iterator end, Bytes &buffer)=0 |
Encode a block of audio. More... | |
virtual bool | flush (Bytes &buffer)=0 |
Flush buffered data if any. More... | |
virtual void | close ()=0 |
Close encoding session. More... | |
virtual | ~BlockAudioEncoderInterface ()=default |
Additional Inherited Members | |
![]() | |
using | Byte = unsigned char |
Byte data type. More... | |
using | Bytes = std::vector< Byte > |
Byte array data type for encoding output. More... | |
Mock class that implements the BlockAudioEncoderInterface
.
alexaClientSDK::capabilityAgents::aip::test::MockBlockAudioEncoder::MOCK_METHOD0 | ( | getInputFrameSize | , |
size_t() | |||
) |
alexaClientSDK::capabilityAgents::aip::test::MockBlockAudioEncoder::MOCK_METHOD0 | ( | getOutputFrameSize | , |
size_t() | |||
) |
alexaClientSDK::capabilityAgents::aip::test::MockBlockAudioEncoder::MOCK_METHOD0 | ( | requiresFullyRead | , |
bool() | |||
) |
alexaClientSDK::capabilityAgents::aip::test::MockBlockAudioEncoder::MOCK_METHOD0 | ( | getAudioFormat | , |
alexaClientSDK::avsCommon::utils::AudioFormat() | |||
) |
alexaClientSDK::capabilityAgents::aip::test::MockBlockAudioEncoder::MOCK_METHOD0 | ( | getAVSFormatName | , |
std::string() | |||
) |
alexaClientSDK::capabilityAgents::aip::test::MockBlockAudioEncoder::MOCK_METHOD0 | ( | close | , |
void() | |||
) |
alexaClientSDK::capabilityAgents::aip::test::MockBlockAudioEncoder::MOCK_METHOD1 | ( | init | , |
bool(alexaClientSDK::avsCommon::utils::AudioFormat inputFormat) | |||
) |
alexaClientSDK::capabilityAgents::aip::test::MockBlockAudioEncoder::MOCK_METHOD1 | ( | start | , |
bool(Bytes &) | |||
) |
alexaClientSDK::capabilityAgents::aip::test::MockBlockAudioEncoder::MOCK_METHOD1 | ( | flush | , |
bool(Bytes &) | |||
) |
alexaClientSDK::capabilityAgents::aip::test::MockBlockAudioEncoder::MOCK_METHOD3 | ( | processSamples | , |
bool(Bytes::const_iterator, Bytes::const_iterator, Bytes &) | |||
) |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0