|
Zrythm
a highly automated and intuitive digital audio workstation
|
Base struct to be inherited by implementing undoable actions. More...
#include <actions/undoable_action.h>
Data Fields | |
| UndoableActionType | type |
| Undoable action type. | |
| double | frames_per_tick |
| A snapshot of AudioEngine.frames_per_tick when the action is executed. | |
| sample_rate_t | sample_rate |
| Sample rate of this action. | |
| int | stack_idx |
| Index in the stack. | |
| int | num_actions |
| Number of actions to perform. | |
Base struct to be inherited by implementing undoable actions.
Definition at line 63 of file undoable_action.h.
| double UndoableAction::frames_per_tick |
A snapshot of AudioEngine.frames_per_tick when the action is executed.
Definition at line 70 of file undoable_action.h.
| int UndoableAction::num_actions |
Number of actions to perform.
This is used to group multiple actions into one logical action (eg, create a group track and route multiple tracks to it).
To be set on the last action being performed.
Definition at line 96 of file undoable_action.h.
| sample_rate_t UndoableAction::sample_rate |
Sample rate of this action.
Used to recalculate UndoableAction.frames_per_tick when the project is loaded under a new samplerate.
Definition at line 78 of file undoable_action.h.
| int UndoableAction::stack_idx |
| UndoableActionType UndoableAction::type |
Undoable action type.
Definition at line 66 of file undoable_action.h.