Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
mixer_selections.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __SCHEMAS_GUI_BACKEND_MIXER_SELECTIONS_H__
11#define __SCHEMAS_GUI_BACKEND_MIXER_SELECTIONS_H__
12
14#include "utils/yaml.h"
15
16typedef struct MixerSelections_v1
17{
18 int schema_version;
19 ZPluginSlotType_v1 type;
20 int slots[60];
21 Plugin_v1 * plugins[60];
22 int num_slots;
23 unsigned int track_name_hash;
24 int has_any;
26
27static const cyaml_schema_field_t mixer_selections_fields_schema_v1[] = {
28 YAML_FIELD_INT (MixerSelections_v1, schema_version),
29 YAML_FIELD_ENUM (MixerSelections_v1, type, plugin_slot_type_strings_v1),
30 YAML_FIELD_FIXED_SIZE_PTR_ARRAY_VAR_COUNT (MixerSelections_v1, slots, int_schema),
31 CYAML_FIELD_SEQUENCE_COUNT (
32 "plugins",
33 CYAML_FLAG_DEFAULT,
35 plugins,
36 num_slots,
37 &plugin_schema_v1,
38 0,
39 CYAML_UNLIMITED),
40 YAML_FIELD_UINT (MixerSelections_v1, track_name_hash),
41 YAML_FIELD_INT (MixerSelections_v1, has_any),
42
43 CYAML_FIELD_END
44};
45
46static const cyaml_schema_value_t mixer_selections_schema_v1 = {
47 YAML_VALUE_PTR (MixerSelections_v1, mixer_selections_fields_schema_v1),
48};
49
50#endif
Plugin schema.
YAML utils.