AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <EqualizerLinearBandMapper.h>
Static Public Member Functions | |
static std::shared_ptr< EqualizerLinearBandMapper > | create (int numberOfTargetBands) |
EqualizerBandMapperInterface methods | |
void | mapEqualizerBands (const acsdkEqualizerInterfaces::EqualizerBandLevelMap &bandLevelMap, std::function< void(int, int)> setBandCallback) override |
Number of bands to map to. More... | |
Additional Inherited Members | |
Public Member Functions inherited from alexaClientSDK::acsdkEqualizer::EqualizerBandMapperInterface | |
virtual | ~EqualizerBandMapperInterface ()=default |
Provides linear mapping from AVS provided bands to target number of bands. Target bands are assumed to be equally distributed among whole spectrum of equalization frequencies starting from basses to treble. I.e. if there are 10 target bands, band with index 0 would be the lowest frequency while band with index 9 will be the highest frequency. AVS bands are also assumed to be distributed equally among the whole spectrum. I.e. if TREBLE is the only one band provided, it will cover top third of target frequencies. All other bands will be assumed to have have equalization level equal to 0 dB, meaning no equalization. This value will be distributed among target bands for lower two thirds.
|
static |
Factory method that creates a linear band mapper given the number of target bands.
numberOfTargetBands |
|
overridevirtual |
Number of bands to map to.
Implements alexaClientSDK::acsdkEqualizer::EqualizerBandMapperInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0