Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
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 66 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 73 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 99 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 81 of file undoable_action.h.

◆ stack_idx

int UndoableAction::stack_idx

Index in the stack.

Used during deserialization.

Definition at line 88 of file undoable_action.h.

◆ type

UndoableActionType UndoableAction::type

Undoable action type.

Definition at line 69 of file undoable_action.h.


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