Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
AudioSelections Struct Reference

Selections to be used for the AudioArrangerWidget's current selections, copying, undoing, etc. More...

#include <gui/backend/audio_selections.h>

Inheritance diagram for AudioSelections:
Collaboration diagram for AudioSelections:

Public Member Functions

void audio_selections_set_has_range (AudioSelections *self, bool has_range)
 Sets whether a range selection exists and sends events to update the UI.
 

Data Fields

ArrangerSelections base
 
int schema_version
 
bool has_selection
 Whether or not a selection exists.
 
Position sel_start
 Selected range.
 
Position sel_end
 
int pool_id
 Audio pool ID of the associated audio file, used during serialization.
 
RegionIdentifier region_id
 Identifier of the current region.
 
- Data Fields inherited from ArrangerSelections
int schema_version
 
ArrangerSelectionsType type
 Type of selections.
 
int magic
 

Detailed Description

Selections to be used for the AudioArrangerWidget's current selections, copying, undoing, etc.

Definition at line 36 of file audio_selections.h.

Field Documentation

◆ base

ArrangerSelections AudioSelections::base

Definition at line 38 of file audio_selections.h.

◆ has_selection

bool AudioSelections::has_selection

Whether or not a selection exists.

Definition at line 43 of file audio_selections.h.

◆ pool_id

int AudioSelections::pool_id

Audio pool ID of the associated audio file, used during serialization.

Set to -1 if unused.

Definition at line 66 of file audio_selections.h.

◆ region_id

RegionIdentifier AudioSelections::region_id

Identifier of the current region.

Other types of selections don't need this since their objects refer to it.

Definition at line 74 of file audio_selections.h.

◆ schema_version

int AudioSelections::schema_version

Definition at line 40 of file audio_selections.h.

◆ sel_end

Position AudioSelections::sel_end

Definition at line 58 of file audio_selections.h.

◆ sel_start

Position AudioSelections::sel_start

Selected range.

The start position must always be before the end position.

Start position is included in the range, end position is excluded.

Note
These are global positions and must be adjusted for the region's start position.

Definition at line 57 of file audio_selections.h.


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