Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
port_connection.h
1// SPDX-FileCopyrightText: © 2021-2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#ifndef __SCHEMAS_AUDIO_PORT_CONNECTION_H__
5#define __SCHEMAS_AUDIO_PORT_CONNECTION_H__
6
7#include "gui/backend/backend/cyaml_schemas/dsp/port_identifier.h"
8#include "utils/yaml.h"
9
10typedef struct PortConnection_v1
11{
12 int schema_version;
13 PortIdentifier_v1 * src_id;
14 PortIdentifier_v1 * dest_id;
15 float multiplier;
16 bool locked;
17 bool enabled;
18 float base_value;
20
21static const cyaml_schema_field_t port_connection_fields_schema_v1[] = {
22 YAML_FIELD_INT (PortConnection_v1, schema_version),
23 YAML_FIELD_MAPPING_PTR (
25 src_id,
26 port_identifier_fields_schema_v1),
27 YAML_FIELD_MAPPING_PTR (
29 dest_id,
30 port_identifier_fields_schema_v1),
31 YAML_FIELD_FLOAT (PortConnection_v1, multiplier),
32 YAML_FIELD_INT (PortConnection_v1, locked),
33 YAML_FIELD_INT (PortConnection_v1, enabled),
34 YAML_FIELD_FLOAT (PortConnection_v1, base_value),
35
36 CYAML_FIELD_END
37};
38
39static const cyaml_schema_value_t port_connection_schema_v1 = {
40 YAML_VALUE_PTR (PortConnection_v1, port_connection_fields_schema_v1),
41};
42
43#endif
YAML utils.