![]() |
AlexaClientSDK
1.20.1
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <MiscDBEqualizerStorage.h>
Public Member Functions | |
EqualizerStorageInterface functions. | |
void | saveState (const avsCommon::sdkInterfaces::audio::EqualizerState &state) override |
avsCommon::utils::error::SuccessResult< avsCommon::sdkInterfaces::audio::EqualizerState > | loadState () override |
void | clear () override |
![]() | |
virtual | ~EqualizerStorageInterface ()=default |
Static Public Member Functions | |
static std::shared_ptr< MiscDBEqualizerStorage > | create (std::shared_ptr< avsCommon::sdkInterfaces::storage::MiscStorageInterface > storage) |
An implementation of EqualizerStorageInterface
that uses MiscStorageInterface
as an underlying storage.
|
overridevirtual |
Clears all the EQ settings from the storage. The next call to loadState()
must return no state unless another state is saved between clear()
and loadState()
.
Implements alexaClientSDK::avsCommon::sdkInterfaces::audio::EqualizerStorageInterface.
|
static |
Factory method to create an instance of MiscDBEqualizerStorage
given the instance MiscStorageInterface
.
storage | An instance of MiscStorageInterface to use as an underlying storage. |
MiscDBEqualizerStorage
on success, nullptr
otherwise.
|
overridevirtual |
Loads a stored equalizer state from the storage.
nullptr
if no state is stored. Implements alexaClientSDK::avsCommon::sdkInterfaces::audio::EqualizerStorageInterface.
|
overridevirtual |
Saves equalizer state to the storage.
state | EqualizerState to store. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::audio::EqualizerStorageInterface.
AlexaClientSDK 1.20.1 - Copyright 2016-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0