bn::sound_speed_loop_action class

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_handle to modify.
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_handle is equal to this parameter, it goes back to its initial state and vice versa.