class
#include <bn_music_actions.h>
music_volume_toggle_action Changes the volume of the active Direct Sound music when the action is updated a given number of times.
Base classes
-
template<typename Property, class PropertyManager>class toggle_template_action<fixed, music_volume_manager>
- Changes the property when the action is updated a given number of times.
Constructors, destructors, conversion operators
- music_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:: music_volume_toggle_action:: music_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].