Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
channel.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_SERIALIZATION_CHANNEL_H__
11#define __IO_SERIALIZATION_CHANNEL_H__
12
13#include "utils/types.h"
14
15#include <glib.h>
16
17#include <yyjson.h>
18
19TYPEDEF_STRUCT (Channel);
20TYPEDEF_STRUCT (ChannelSend);
21TYPEDEF_STRUCT (Fader);
22
23bool
24channel_send_serialize_to_json (
25 yyjson_mut_doc * doc,
26 yyjson_mut_val * cs_obj,
27 const ChannelSend * cs,
28 GError ** error);
29
30bool
31fader_serialize_to_json (
32 yyjson_mut_doc * doc,
33 yyjson_mut_val * f_obj,
34 const Fader * f,
35 GError ** error);
36
37bool
38channel_serialize_to_json (
39 yyjson_mut_doc * doc,
40 yyjson_mut_val * ch_obj,
41 const Channel * ch,
42 GError ** error);
43
44bool
45channel_send_deserialize_from_json (
46 yyjson_doc * doc,
47 yyjson_val * cs_obj,
48 ChannelSend * cs,
49 GError ** error);
50
51bool
52fader_deserialize_from_json (
53 yyjson_doc * doc,
54 yyjson_val * f_obj,
55 Fader * f,
56 GError ** error);
57
58bool
59channel_deserialize_from_json (
60 yyjson_doc * doc,
61 yyjson_val * ch_obj,
62 Channel * ch,
63 GError ** error);
64
65#endif // __IO_SERIALIZATION_CHANNEL_H__
Channel send.
A Channel is part of a Track (excluding Tracks that don't have Channels) and contains information rel...
Definition channel.h:57
A Fader is a processor that is used for volume controls and pan.
Definition fader.h:91
Custom types.