Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
sample_processor.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_AUDIO_SAMPLE_PROCESSOR_H__
11#define __SCHEMAS_AUDIO_SAMPLE_PROCESSOR_H__
12
14#include "utils/types.h"
15
16typedef struct SampleProcessor_v1
17{
18 int schema_version;
19 Fader_v1 * fader;
21
22static const cyaml_schema_field_t sample_processor_fields_schema_v1[] = {
23 YAML_FIELD_INT (SampleProcessor_v1, schema_version),
24 YAML_FIELD_MAPPING_PTR (SampleProcessor_v1, fader, fader_fields_schema_v1),
25
26 CYAML_FIELD_END
27};
28
29static const cyaml_schema_value_t sample_processor_schema_v1 = {
30 YAML_VALUE_PTR (SampleProcessor_v1, sample_processor_fields_schema_v1),
31};
32
33typedef struct SampleProcessor_v2
34{
35 int schema_version;
36 Fader_v2 * fader;
38
39static const cyaml_schema_field_t sample_processor_fields_schema_v2[] = {
40 YAML_FIELD_INT (SampleProcessor_v2, schema_version),
41 YAML_FIELD_MAPPING_PTR (SampleProcessor_v2, fader, fader_fields_schema_v2),
42
43 CYAML_FIELD_END
44};
45
46static const cyaml_schema_value_t sample_processor_schema_v2 = {
47 YAML_VALUE_PTR (SampleProcessor_v2, sample_processor_fields_schema_v2),
48};
49
51sample_processor_upgrade_from_v1 (SampleProcessor_v1 * old);
52
53#endif
Fader schema.
Custom types.