Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
hardware_processor.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2020-2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __SCHEMAS_AUDIO_HARDWARE_PROCESSOR_H__
11#define __SCHEMAS_AUDIO_HARDWARE_PROCESSOR_H__
12
15
17{
18 int schema_version;
19 bool is_input;
20 ExtPort_v1 ** ext_audio_ports;
21 int num_ext_audio_ports;
22 ExtPort_v1 ** ext_midi_ports;
23 int num_ext_midi_ports;
24 Port_v1 ** audio_ports;
25 int num_audio_ports;
26 Port_v1 ** midi_ports;
27 int num_midi_ports;
29
30static const cyaml_schema_field_t hardware_processor_fields_schema_v1[] = {
31 YAML_FIELD_INT (HardwareProcessor_v1, schema_version),
32 YAML_FIELD_INT (HardwareProcessor_v1, is_input),
33 YAML_FIELD_DYN_PTR_ARRAY_VAR_COUNT_OPT (
35 ext_audio_ports,
36 ext_port_schema_v1),
37 YAML_FIELD_DYN_PTR_ARRAY_VAR_COUNT_OPT (
39 ext_midi_ports,
40 ext_port_schema_v1),
41 YAML_FIELD_DYN_PTR_ARRAY_VAR_COUNT_OPT (
43 audio_ports,
44 port_schema_v1),
45 YAML_FIELD_DYN_PTR_ARRAY_VAR_COUNT_OPT (
47 midi_ports,
48 port_schema_v1),
49
50 CYAML_FIELD_END
51};
52
53static const cyaml_schema_value_t hardware_processor_schema_v1 = {
54 YAML_VALUE_PTR (HardwareProcessor_v1, hardware_processor_fields_schema_v1),
55};
56
57#endif
External port schema.
Port schema.
Definition port.h:18