bn::music_pitch_loop_action class

Modifies the pitch of the active Direct Sound music from a minimum to a maximum. When the pitch 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_pitch_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_pitch_loop_action(int duration_updates, fixed final_pitch)
Constructor.

Public functions

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

Function documentation

bn::music_pitch_loop_action::music_pitch_loop_action(int duration_updates, fixed final_pitch)

Constructor.

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

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