Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
engine.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2023 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __IO_ENGINE_H__
11#define __IO_ENGINE_H__
12
13#include "utils/types.h"
14
15#include <glib.h>
16
17#include <yyjson.h>
18
19TYPEDEF_STRUCT (AudioEngine);
20TYPEDEF_STRUCT (Transport);
21
22bool
23transport_serialize_to_json (
24 yyjson_mut_doc * doc,
25 yyjson_mut_val * transport_obj,
26 const Transport * transport,
27 GError ** error);
28
29bool
30audio_engine_serialize_to_json (
31 yyjson_mut_doc * doc,
32 yyjson_mut_val * engine_obj,
33 const AudioEngine * engine,
34 GError ** error);
35
36bool
37transport_deserialize_from_json (
38 yyjson_doc * doc,
39 yyjson_val * transport_obj,
40 Transport * transport,
41 GError ** error);
42
43bool
44audio_engine_deserialize_from_json (
45 yyjson_doc * doc,
46 yyjson_val * engine_obj,
47 AudioEngine * engine,
48 GError ** error);
49
50#endif // __IO_ENGINE_H__
The audio engine.
Definition engine.h:358
The transport.
Definition transport.h:148
Custom types.