Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
audio_clip_editor.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
10#ifndef __AUDIO_AUDIO_CLIP_EDITOR_H__
11#define __AUDIO_AUDIO_CLIP_EDITOR_H__
12
14#include "utils/yaml.h"
15
22#define AUDIO_CLIP_EDITOR_SCHEMA_VERSION 1
23
24#define AUDIO_CLIP_EDITOR (CLIP_EDITOR->audio_clip_editor)
25
32typedef struct AudioClipEditor
33{
34 int schema_version;
35 EditorSettings editor_settings;
37
38static const cyaml_schema_field_t audio_clip_editor_fields_schema[] = {
39 YAML_FIELD_INT (AudioClipEditor, schema_version),
42 editor_settings,
43 editor_settings_fields_schema),
44
45 CYAML_FIELD_END
46};
47
48static const cyaml_schema_value_t audio_clip_editor_schema = {
49 YAML_VALUE_PTR (AudioClipEditor, audio_clip_editor_fields_schema),
50};
51
52void
53audio_clip_editor_init (AudioClipEditor * self);
54
56audio_clip_editor_clone (AudioClipEditor * src);
57
59audio_clip_editor_new (void);
60
61void
62audio_clip_editor_free (AudioClipEditor * self);
63
68#endif
Common editor settings.
#define YAML_FIELD_MAPPING_EMBEDDED(owner, member, schema)
Mapping embedded inside the struct.
Definition yaml.h:31
#define YAML_VALUE_PTR(cc, fields_schema)
Schema to be used as a pointer.
Definition yaml.h:202
Audio clip editor serializable backend.
Common editor settings.
YAML utils.