Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
graph_thread.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/*
4 * This file incorporates work covered by the following copyright and
5 * permission notice:
6 *
7 * ---
8 *
9 * Copyright (C) 2017, 2019 Robin Gareus <robin@gareus.org>
10 *
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <https://www.gnu.org/licenses/>.
23 *
24 * ---
25 */
26
33#ifndef __AUDIO_GRAPH_THREAD_H__
34#define __AUDIO_GRAPH_THREAD_H__
35
36#include "zrythm-config.h"
37
38#include <stdbool.h>
39
40#include "utils/types.h"
41
42#include <gtk/gtk.h>
43
44#include <pthread.h>
45
46#ifdef HAVE_LSP_DSP
47# include <lsp-plug.in/dsp/dsp.h>
48#endif
49
50typedef struct Graph Graph;
51
58typedef struct GraphThread
59{
60 pthread_t pthread;
61
68 int id;
69
72
73#ifdef HAVE_LSP_DSP
75 lsp_dsp_context_t lsp_ctx;
76#endif
78
87graph_thread_new (const int id, const bool is_main, Graph * graph);
88
93#endif
GraphThread * graph_thread_new(const int id, const bool is_main, Graph *graph)
Creates a thread.
int id
Thread index in zrythm.
Graph * graph
Pointer back to the graph.
Graph.
Definition graph.h:71
Custom types.