LMMS
Loading...
Searching...
No Matches
CarlaEngineGraph.cpp File Reference
#include "CarlaEngineGraph.hpp"
#include "CarlaEngineInternal.hpp"
#include "CarlaPlugin.hpp"
#include "CarlaMathUtils.hpp"
#include "CarlaScopeUtils.hpp"
#include "CarlaMIDI.h"

Classes

class  CarlaPluginInstance
class  NamedAudioGraphIOProcessor
class  AudioProcessor
class  MidiBuffer

Macros

#define MAX_GRAPH_AUDIO_IO   64U
#define MAX_GRAPH_CV_IO   32U

Functions

static uint getExternalGraphPortIdFromName (const char *const shortname) noexcept
static const char * getExternalGraphFullPortNameFromId (const uint portId)
static bool adjustPatchbayPortIdForWater (AudioProcessor::ChannelType &channelType, uint &portId)
static const String getProcessorFullPortName (AudioProcessor *const proc, const uint32_t portId)
static void addNodeToPatchbay (const bool sendHost, const bool sendOSC, CarlaEngine *const engine, AudioProcessorGraph::Node *const node, const int pluginId, const AudioProcessor *const proc)
static void removeNodeFromPatchbay (const bool sendHost, const bool sendOSC, CarlaEngine *const engine, const uint32_t groupId, const AudioProcessor *const proc)
template<typename Type>
Type jmax (const Type a, const Type b)
template<typename Type>
Type jmin (const Type a, const Type b)

Variables

static CARLA_BACKEND_START_NAMESPACE const PortNameToId kPortNameToIdFallback = { 0, 0, { '\0' }, { '\0' }, { '\0' } }
static PortNameToId kPortNameToIdFallbackNC = { 0, 0, { '\0' }, { '\0' }, { '\0' } }
static const uint32_t kMaxPortsPerPlugin = 255
static const uint32_t kAudioInputPortOffset = kMaxPortsPerPlugin*1
static const uint32_t kAudioOutputPortOffset = kMaxPortsPerPlugin*2
static const uint32_t kCVInputPortOffset = kMaxPortsPerPlugin*3
static const uint32_t kCVOutputPortOffset = kMaxPortsPerPlugin*4
static const uint32_t kMidiInputPortOffset = kMaxPortsPerPlugin*5
static const uint32_t kMidiOutputPortOffset = kMaxPortsPerPlugin*6
static const uint32_t kMaxPortOffset = kMaxPortsPerPlugin*7

Macro Definition Documentation

◆ MAX_GRAPH_AUDIO_IO

#define MAX_GRAPH_AUDIO_IO   64U

◆ MAX_GRAPH_CV_IO

#define MAX_GRAPH_CV_IO   32U

Function Documentation

◆ addNodeToPatchbay()

void addNodeToPatchbay ( const bool sendHost,
const bool sendOSC,
CarlaEngine *const engine,
AudioProcessorGraph::Node *const node,
const int pluginId,
const AudioProcessor *const proc )
inlinestatic

◆ adjustPatchbayPortIdForWater()

bool adjustPatchbayPortIdForWater ( AudioProcessor::ChannelType & channelType,
uint & portId )
inlinestatic

◆ getExternalGraphFullPortNameFromId()

const char * getExternalGraphFullPortNameFromId ( const uint portId)
inlinestatic

◆ getExternalGraphPortIdFromName()

uint getExternalGraphPortIdFromName ( const char *const shortname)
inlinestaticnoexcept

◆ getProcessorFullPortName()

const String getProcessorFullPortName ( AudioProcessor *const proc,
const uint32_t portId )
inlinestatic

◆ jmax()

template<typename Type>
Type water::jmax ( const Type a,
const Type b )

Returns the larger of two values.

◆ jmin()

template<typename Type>
Type water::jmin ( const Type a,
const Type b )

Returns the smaller of two values.

◆ removeNodeFromPatchbay()

void removeNodeFromPatchbay ( const bool sendHost,
const bool sendOSC,
CarlaEngine *const engine,
const uint32_t groupId,
const AudioProcessor *const proc )
inlinestatic

Variable Documentation

◆ kAudioInputPortOffset

const uint32_t kAudioInputPortOffset = kMaxPortsPerPlugin*1
static

◆ kAudioOutputPortOffset

const uint32_t kAudioOutputPortOffset = kMaxPortsPerPlugin*2
static

◆ kCVInputPortOffset

const uint32_t kCVInputPortOffset = kMaxPortsPerPlugin*3
static

◆ kCVOutputPortOffset

const uint32_t kCVOutputPortOffset = kMaxPortsPerPlugin*4
static

◆ kMaxPortOffset

const uint32_t kMaxPortOffset = kMaxPortsPerPlugin*7
static

◆ kMaxPortsPerPlugin

const uint32_t kMaxPortsPerPlugin = 255
static

◆ kMidiInputPortOffset

const uint32_t kMidiInputPortOffset = kMaxPortsPerPlugin*5
static

◆ kMidiOutputPortOffset

const uint32_t kMidiOutputPortOffset = kMaxPortsPerPlugin*6
static

◆ kPortNameToIdFallback

CARLA_BACKEND_START_NAMESPACE const PortNameToId kPortNameToIdFallback = { 0, 0, { '\0' }, { '\0' }, { '\0' } }
static

◆ kPortNameToIdFallbackNC

PortNameToId kPortNameToIdFallbackNC = { 0, 0, { '\0' }, { '\0' }, { '\0' } }
static