bn::sound_panning_toggle_action class

Changes the panning of a sound effect when the action is updated a given number of times.

Base classes

template<typename Value, typename Property, class PropertyManager>
class toggle_value_template_action<sound_handle, fixed, sound_panning_manager>
Changes the property of a value when the action is updated a given number of times.

Constructors, destructors, conversion operators

sound_panning_toggle_action(sound_handle handle, int duration_updates, fixed new_panning)
Constructor.

Public functions

auto handle() const -> sound_handle
Returns the sound_handle to modify.
auto new_panning() const -> fixed
Returns the panning of the given sound_handle when the action is updated the given number of times.

Function documentation

bn::sound_panning_toggle_action::sound_panning_toggle_action(sound_handle handle, int duration_updates, fixed new_panning)

Constructor.

Parameters
handle sound_handle to modify.
duration_updates How much times the action has to be updated to change the panning of the given sound_handle.
new_panning New panning when the action is updated duration_updates times.