![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AndroidSLESObject.h>
Public Member Functions | |
~AndroidSLESObject () | |
bool | getInterface (SLInterfaceID interfaceID, void *retObject) |
SLObjectItf | get () const |
Static Public Member Functions | |
static std::unique_ptr< AndroidSLESObject > | create (SLObjectItf slObject) |
This class will represent an OpenSL ES object.
This class will abstract the object states as well as interface relationship from Open SL to be more C++ friendly. For more details see https://www.khronos.org/registry/OpenSL-ES/specs/OpenSL_ES_Specification_1.0.1.pdf
alexaClientSDK::applicationUtilities::androidUtilities::AndroidSLESObject::~AndroidSLESObject | ( | ) |
AndroidSLESObject destructor. It will be responsible for destroying the underlying SLObjectItf
.
|
static |
This method will create an AndroidSLESObject
and perform a synchronous realization.
At the end of this method, the internal SLObjectItf
will be ready to be used.
slObject | The C object that the new instance will wrap and own. |
AndroidSLESObject
if creation was successful, nullptr
otherwise. SLObjectItf alexaClientSDK::applicationUtilities::androidUtilities::AndroidSLESObject::get | ( | ) | const |
Get a raw pointer to the internal C object.
bool alexaClientSDK::applicationUtilities::androidUtilities::AndroidSLESObject::getInterface | ( | SLInterfaceID | interfaceID, |
void * | retObject | ||
) |
Get the object C interface.
interfaceID | The object C interface ID. | |
[out] | retObject | The returned object. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0