Zrythm
a highly automated and intuitive digital audio workstation
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
UndoableAction Struct Reference

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.
 

Detailed Description

Base struct to be inherited by implementing undoable actions.

Definition at line 63 of file undoable_action.h.

Field Documentation

◆ frames_per_tick

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.

◆ num_actions

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

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.

◆ stack_idx

int UndoableAction::stack_idx

Index in the stack.

Used during deserialization.

Definition at line 85 of file undoable_action.h.

◆ type

UndoableActionType UndoableAction::type

Undoable action type.

Definition at line 66 of file undoable_action.h.


The documentation for this struct was generated from the following file: