Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
audio_selections.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2021 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __SCHEMAS_GUI_BACKEND_AUDIO_SELECTIONS_H__
11#define __SCHEMAS_GUI_BACKEND_AUDIO_SELECTIONS_H__
12
16#include "utils/yaml.h"
17
18typedef struct AudioSelections_v1
19{
21 int schema_version;
22 bool has_selection;
23 Position_v1 sel_start;
24 Position_v1 sel_end;
25 int pool_id;
26 RegionIdentifier_v1 region_id;
28
29static const cyaml_schema_field_t audio_selections_fields_schema_v1[] = {
30 YAML_FIELD_MAPPING_EMBEDDED (
32 base,
33 arranger_selections_fields_schema_v1),
34 YAML_FIELD_INT (AudioSelections_v1, schema_version),
35 YAML_FIELD_INT (AudioSelections_v1, has_selection),
36 YAML_FIELD_MAPPING_EMBEDDED (
38 sel_start,
39 position_fields_schema_v1),
40 YAML_FIELD_MAPPING_EMBEDDED (
42 sel_end,
43 position_fields_schema_v1),
44 YAML_FIELD_INT (AudioSelections_v1, pool_id),
45 YAML_FIELD_MAPPING_EMBEDDED (
47 region_id,
48 region_identifier_fields_schema_v1),
49
50 CYAML_FIELD_END
51};
52
53static const cyaml_schema_value_t audio_selections_schema_v1 = {
54 YAML_VALUE_PTR (AudioSelections_v1, audio_selections_fields_schema_v1),
55};
56
57#endif
ArrangerSelections schema.
Position schema.
Region identifier schema.
YAML utils.