bn::sound_master_volume_toggle_action class

Changes the master volume of all sound effects when the action is updated a given number of times.

Base classes

template<typename Property, class PropertyManager>
class toggle_template_action<fixed, sound_master_volume_manager>
Changes the property when the action is updated a given number of times.

Constructors, destructors, conversion operators

sound_master_volume_toggle_action(int duration_updates, fixed new_volume)
Constructor.

Public functions

auto new_volume() const -> fixed
Returns the volume when the action is updated the given number of times.

Function documentation

bn::sound_master_volume_toggle_action::sound_master_volume_toggle_action(int duration_updates, fixed new_volume)

Constructor.

Parameters
duration_updates How much times the action has to be updated to change the volume.
new_volume New volume when the action is updated duration_updates times.

This volume must be in the range [0..1].