VCV Rack API v2
Loading...
Searching...
No Matches
Cable.hpp
Go to the documentation of this file.
1#pragma once
2#include <common.hpp>
3#include <engine/Module.hpp>
4
5
6namespace rack {
7namespace engine {
8
9
10struct Cable {
15 int64_t id = -1;
17 int inputId = -1;
19 int outputId = -1;
20
21 json_t* toJson();
22 void fromJson(json_t* rootJ);
23 PRIVATE static void jsonStripIds(json_t* rootJ);
24};
25
26
27} // namespace engine
28} // namespace rack
#define PRIVATE
Attribute for private functions not intended to be called by plugins.
Definition common.hpp:30
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Definition Cable.hpp:10
int outputId
Definition Cable.hpp:19
static PRIVATE void jsonStripIds(json_t *rootJ)
Module * inputModule
Definition Cable.hpp:16
int inputId
Definition Cable.hpp:17
void fromJson(json_t *rootJ)
Module * outputModule
Definition Cable.hpp:18
DSP processor instance for your module.
Definition Module.hpp:29