#include <MockChannelVolumeInterface.h>
◆ MockChannelVolumeManager()
◆ getId()
size_t alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeManager::getId |
( |
| ) |
const |
|
inlinevirtual |
◆ getSpeakerSettings()
Returns a SpeakerSettings
object to indicate the current settings of the underlying speaker
. Note that if the underlying Channel is attenuated, the settings returned must still return the unducked volume of the underlying speaker, as set by the most recent call to the setUnduckedVolume API.
- Parameters
-
[out] | settings | A SpeakerSettings object if successful. |
- Returns
true
if the operation succeeded, false
otherwise.
Implements alexaClientSDK::avsCommon::sdkInterfaces::ChannelVolumeInterface.
◆ getSpeakerType()
◆ setMute()
bool alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeManager::setMute |
( |
bool |
mute | ) |
|
|
inlinevirtual |
◆ setUnduckedVolume()
bool alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeManager::setUnduckedVolume |
( |
int8_t |
volume | ) |
|
|
inlinevirtual |
Set the volume of the underlying speaker. This reflects the baseline volume settings for underlying Channel when it is not attenuated. If the underlying SpeakerInterface
is ducked when this API is invoked, the corresponding unduckedVolume setting change is reflected upon the next stopDucking call.
- Parameters
-
volume | the volume level to be set. |
- Returns
true
if the operation succeeded, false
otherwise.
Implements alexaClientSDK::avsCommon::sdkInterfaces::ChannelVolumeInterface.
◆ startDucking()
bool alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeManager::startDucking |
( |
| ) |
|
|
inlinevirtual |
Start channel volume attenuation for the underlying speaker. The interface consults the volume curve function set in ChannelVolumeManager
to determine the desired attenuated channel volume.
- Returns
true
if the operation succeeded, false
otherwise. The API returns true, if the channel is already attenuated.
Implements alexaClientSDK::avsCommon::sdkInterfaces::ChannelVolumeInterface.
◆ stopDucking()
bool alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeManager::stopDucking |
( |
| ) |
|
|
inlinevirtual |
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