class
#include <bn_sound_actions.h>
sound_speed_loop_action Modifies the speed of a sound effect from a minimum to a maximum. When the speed is equal to the given final state, it goes back to its initial state and vice versa.
Base classes
-
template<typename Value, typename Property, class PropertyManager>class loop_value_template_action<sound_handle, fixed, sound_speed_manager>
- Modifies the property of a value by delta from a minimum to a maximum. When the property is equal to the given final state, it goes back to its initial state and vice versa.
Constructors, destructors, conversion operators
-
sound_speed_loop_action(sound_
handle handle, int duration_updates, fixed final_speed) - Constructor.
Public functions
-
auto handle() const -> sound_
handle - Returns the sound_
handle to modify. - auto final_speed() const -> fixed
- When the speed of the given sound_
handle is equal to this returned parameter, it goes back to its initial state and vice versa.
Function documentation
bn:: sound_speed_loop_action:: sound_speed_loop_action(sound_ handle handle,
int duration_updates,
fixed final_speed)
Constructor.
Parameters | |
---|---|
handle | sound_ |
duration_updates | How much times the action has to be updated before changing the direction of the speed delta. |
final_speed | When the speed of the given sound_ |