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
 
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
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 33 of file audio_selections.h.

Field Documentation

◆ base

ArrangerSelections AudioSelections::base

Definition at line 35 of file audio_selections.h.

◆ has_selection

bool AudioSelections::has_selection

Whether or not a selection exists.

Definition at line 38 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 61 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 69 of file audio_selections.h.

◆ sel_end

Position AudioSelections::sel_end

Definition at line 53 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 52 of file audio_selections.h.


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