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