class
#include <bn_sound_actions.h>
sound_speed_toggle_action Changes the speed of a sound effect when the action is updated a given number of times.
Base classes
-
template<typename Value, typename Property, class PropertyManager>class toggle_value_template_action<sound_handle, fixed, sound_speed_manager>
- Changes the property of a value when the action is updated a given number of times.
Constructors, destructors, conversion operators
-
sound_speed_toggle_action(sound_
handle handle, int duration_updates, fixed new_speed) - Constructor.
Public functions
-
auto handle() const -> sound_
handle - Returns the sound_
handle to modify. - auto new_speed() const -> fixed
- Returns the speed of the given sound_
handle when the action is updated the given number of times.
Function documentation
bn:: sound_speed_toggle_action:: sound_speed_toggle_action(sound_ handle handle,
int duration_updates,
fixed new_speed)
Constructor.
Parameters | |
---|---|
handle | sound_ |
duration_updates | How many times the action has to be updated to change the speed of the given sound_ |
new_speed | New speed when the action is updated duration_updates times. |