bn::music_pitch_to_action class

Modifies the pitch of the active Direct Sound music until it has a given state.

Base classes

template<typename Property, class PropertyManager>
class to_template_action<fixed, music_pitch_manager>
Modifies the property until it has a given state.

Constructors, destructors, conversion operators

music_pitch_to_action(int duration_updates, fixed final_pitch)
Constructor.

Public functions

auto final_pitch() const -> fixed
Returns the pitch when the action is updated the given number of times.

Function documentation

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

Constructor.

Parameters
duration_updates Number of times that the action must be updated until the pitch is equal to final_pitch.
final_pitch pitch when the action is updated duration_updates times.

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