bn::music_tempo_loop_action class

Modifies the tempo of the active Direct Sound music from a minimum to a maximum. When the tempo is equal to the given final state, it goes back to its initial state and vice versa.

Base classes

template<typename Property, class PropertyManager>
class loop_template_action<fixed, music_tempo_manager>
Modifies the property 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

music_tempo_loop_action(int duration_updates, fixed final_tempo)
Constructor.

Public functions

auto final_tempo() const -> fixed
When the tempo is equal to the returned parameter, it goes back to its initial state and vice versa.

Function documentation

bn::music_tempo_loop_action::music_tempo_loop_action(int duration_updates, fixed final_tempo)

Constructor.

Parameters
duration_updates How much times the action has to be updated before changing the direction of the tempo delta.
final_tempo When the tempo is equal to this parameter, it goes back to its initial state and vice versa.

This tempo must be in the range [0.5..2].