Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
position.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2018-2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __SCHEMAS_AUDIO_POSITION_H__
11#define __SCHEMAS_AUDIO_POSITION_H__
12
13#include "utils/types.h"
14#include "utils/yaml.h"
15
16typedef struct Position_v1
17{
18 int schema_version;
19 double ticks;
20 signed_frame_t frames;
22
23static const cyaml_schema_field_t position_fields_schema_v1[] = {
24 YAML_FIELD_INT (Position_v1, schema_version),
25 YAML_FIELD_FLOAT (Position_v1, ticks), YAML_FIELD_INT (Position_v1, frames),
26 CYAML_FIELD_END
27};
28
29static const cyaml_schema_value_t position_schema_v1 = {
30 YAML_VALUE_PTR (Position_v1, position_fields_schema_v1),
31};
32
33#endif
int_fast64_t signed_frame_t
Signed type for frame index.
Definition types.h:82
Custom types.
YAML utils.