Ardour  9.0-pre0-582-g084a23a80d
osc.h File Reference
#include <bitset>
#include <memory>
#include <string>
#include <vector>
#include <sys/time.h>
#include <pthread.h>
#include <lo/lo.h>
#include <glibmm/main.h>
#include "pbd/abstract_ui.h"
#include "ardour/types.h"
#include "ardour/send.h"
#include "ardour/plugin.h"
#include "control_protocol/control_protocol.h"
#include "pbd/i18n.h"
Include dependency graph for osc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ArdourSurface::OSCUIRequest
 
class  ArdourSurface::OSC
 
struct  ArdourSurface::OSC::OSCSurface
 
struct  ArdourSurface::OSC::LinkSet
 
struct  ArdourSurface::OSC::PortAdd
 

Namespaces

 ARDOUR
 
 ArdourSurface
 

Macros

#define ABSTRACT_UI_EXPORTS
 
#define OSC_DEBUG
 
#define PATH_CALLBACK_MSG(name)
 
#define PATH_CALLBACK(name)
 
#define PATH_CALLBACK1(name, type, optional)
 
#define PATH_CALLBACK1_MSG(name, arg1type)
 
#define PATH_CALLBACK1_MSG_s(name, arg1type)
 
#define PATH_CALLBACK2(name, arg1type, arg2type)
 
#define PATH_CALLBACK2_MSG(name, arg1type, arg2type)
 
#define PATH_CALLBACK2_MSG_s(name, arg1type, arg2type)
 
#define PATH_CALLBACK3(name, arg1type, arg2type, arg3type)
 
#define PATH_CALLBACK4(name, arg1type, arg2type, arg3type, arg4type)
 

Macro Definition Documentation

◆ ABSTRACT_UI_EXPORTS

#define ABSTRACT_UI_EXPORTS

Definition at line 41 of file osc.h.

◆ OSC_DEBUG

#define OSC_DEBUG
Value:
if (_debugmode == All) { \
debugmsg (dgettext(PACKAGE, "OSC"), path, types, argv, argc); \
}

Definition at line 387 of file osc.h.

◆ PATH_CALLBACK

#define PATH_CALLBACK (   name)
Value:
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, msg); \
} \
int cb_ ## name (const char *path, const char *types, lo_arg ** argv, int argc, lo_message msg) { \
OSC_DEBUG; \
check_surface (msg); \
if (argc > 0 && !strcmp (types, "f") && argv[0]->f != 1.0) { return 0; } \
name (); \
return 0; \
}
GtkImageIconNameData name
Definition: gtkimage.h:6
#define _(Text)
Definition: i18n.h:29

Definition at line 418 of file osc.h.

◆ PATH_CALLBACK1

#define PATH_CALLBACK1 (   name,
  type,
  optional 
)
Value:
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, msg); \
} \
int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg) { \
OSC_DEBUG; \
check_surface (msg); \
if (argc > 0) { \
name (optional argv[0]->type); \
} \
return 0; \
}

Definition at line 485 of file osc.h.

◆ PATH_CALLBACK1_MSG

#define PATH_CALLBACK1_MSG (   name,
  arg1type 
)
Value:
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, msg); \
} \
int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg) { \
OSC_DEBUG; \
if (argc > 0) { \
name (argv[0]->arg1type, msg); \
} \
return 0; \
}

Definition at line 512 of file osc.h.

◆ PATH_CALLBACK1_MSG_s

#define PATH_CALLBACK1_MSG_s (   name,
  arg1type 
)
Value:
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, msg); \
} \
int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg) { \
OSC_DEBUG; \
if (argc > 0) { \
name (&argv[0]->arg1type, msg); \
} \
return 0; \
}

Definition at line 524 of file osc.h.

◆ PATH_CALLBACK2

#define PATH_CALLBACK2 (   name,
  arg1type,
  arg2type 
)
Value:
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, msg); \
} \
int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg) { \
OSC_DEBUG; \
check_surface (msg); \
if (argc > 1) { \
name (argv[0]->arg1type, argv[1]->arg2type); \
} \
return 0; \
}

Definition at line 568 of file osc.h.

◆ PATH_CALLBACK2_MSG

#define PATH_CALLBACK2_MSG (   name,
  arg1type,
  arg2type 
)
Value:
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, msg); \
} \
int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg) { \
OSC_DEBUG; \
if (argc > 1) { \
name (argv[0]->arg1type, argv[1]->arg2type, msg); \
} \
return 0; \
}

Definition at line 581 of file osc.h.

◆ PATH_CALLBACK2_MSG_s

#define PATH_CALLBACK2_MSG_s (   name,
  arg1type,
  arg2type 
)
Value:
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, msg); \
} \
int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg) { \
OSC_DEBUG; \
if (argc > 1) { \
name (argv[0]->arg1type, &argv[1]->arg2type, msg); \
} \
return 0; \
}

Definition at line 593 of file osc.h.

◆ PATH_CALLBACK3

#define PATH_CALLBACK3 (   name,
  arg1type,
  arg2type,
  arg3type 
)
Value:
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, msg); \
} \
int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg) { \
OSC_DEBUG; \
if (argc > 1) { \
name (argv[0]->arg1type, argv[1]->arg2type,argv[2]->arg3type, msg); \
} \
return 0; \
}

Definition at line 605 of file osc.h.

◆ PATH_CALLBACK4

#define PATH_CALLBACK4 (   name,
  arg1type,
  arg2type,
  arg3type,
  arg4type 
)
Value:
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, msg); \
} \
int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg) { \
OSC_DEBUG; \
if (argc > 1) { \
name (argv[0]->arg1type, argv[1]->arg2type,argv[2]->arg3type,argv[3]->arg4type, msg); \
} \
return 0; \
}

Definition at line 617 of file osc.h.

◆ PATH_CALLBACK_MSG

#define PATH_CALLBACK_MSG (   name)
Value:
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, msg); \
} \
int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg) { \
OSC_DEBUG; \
if (argc > 0 && !strcmp (types, "f") && argv[0]->f != 1.0) { return 0; } \
name (msg); \
return 0; \
}

Definition at line 392 of file osc.h.