Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
live_waveform.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019, 2023 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#ifndef __GUI_WIDGETS_LIVE_WAVEFORM_H__
5#define __GUI_WIDGETS_LIVE_WAVEFORM_H__
6
13#include <gtk/gtk.h>
14
15#define LIVE_WAVEFORM_WIDGET_TYPE (live_waveform_widget_get_type ())
16G_DECLARE_FINAL_TYPE (
18 live_waveform_widget,
19 Z,
20 LIVE_WAVEFORM_WIDGET,
21 GtkDrawingArea)
22
23typedef struct Port Port;
24
31typedef enum LiveWaveformType
32{
33 LIVE_WAVEFORM_ENGINE,
34 LIVE_WAVEFORM_PORT,
35} LiveWaveformType;
36
37typedef struct _LiveWaveformWidget
38{
39 GtkDrawingArea parent_instance;
40
41 LiveWaveformType type;
42
45
46 float * bufs[2];
47
49 size_t buf_sz[2];
50
52 GdkRGBA color_green;
53
56
58
62void
64
70
75#endif
LiveWaveformWidget * live_waveform_widget_new_port(Port *port)
Creates a LiveWaveformWidget for a port.
void live_waveform_widget_setup_engine(LiveWaveformWidget *self)
Creates a LiveWaveformWidget for the AudioEngine.
Port * port
Port, if port.
int draw_border
Draw border or not.
GdkRGBA color_green
Used for drawing.
Must ONLY be created via port_new()
Definition port.h:138