AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Static Public Member Functions | List of all members
alexaClientSDK::acsdkEqualizer::EqualizerLinearBandMapper Class Reference

#include <EqualizerLinearBandMapper.h>

Inheritance diagram for alexaClientSDK::acsdkEqualizer::EqualizerLinearBandMapper:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acsdkEqualizer::EqualizerLinearBandMapper:
Collaboration graph
[legend]

Static Public Member Functions

static std::shared_ptr< EqualizerLinearBandMappercreate (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
 

Detailed Description

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.

Member Function Documentation

◆ create()

static std::shared_ptr<EqualizerLinearBandMapper> alexaClientSDK::acsdkEqualizer::EqualizerLinearBandMapper::create ( int  numberOfTargetBands)
static

Factory method that creates a linear band mapper given the number of target bands.

Parameters
numberOfTargetBands
Returns

◆ mapEqualizerBands()

void alexaClientSDK::acsdkEqualizer::EqualizerLinearBandMapper::mapEqualizerBands ( const acsdkEqualizerInterfaces::EqualizerBandLevelMap bandLevelMap,
std::function< void(int, int)>  setBandCallback 
)
overridevirtual

Number of bands to map to.

Implements alexaClientSDK::acsdkEqualizer::EqualizerBandMapperInterface.


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