OSC_support.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "lo/lo.h"
#include "BasicFMInstrument.h"

Classes

struct  Inst_Context

Defines

#define MAX_ACCESSORS   64
#define addOSCMethod(name, nfunction)   lo_server_thread_add_method(sSrvThrd, nname, NULL, nfunction, NULL)

Functions

void error (int num, const char *m, const char *path)
int generic_handler (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data)
int foo_handler (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data)
int quit_handler (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data)
void initOSCReceive ()
void initOSCAddrSpace ()
void setupOSCInstrLibrary (std::vector< Instrument * > library)
void addOSCMethod2 (name, nfunction, void *user_data)
 lo_server_thread_add_method (sSrvThrd,"/foo/bar","fi", foo_handler, NULL)
void mainOSCLoop (int port)
void quitCSL ()
void floatParamSetter (void *con, int arglen, const void *vargs, OSCTimeTag when, NetworkReturnAddressPtr ra)
void intParamSetter (void *con, int arglen, const void *vargs, OSCTimeTag when, NetworkReturnAddressPtr ra)
void stringParamSetter (void *con, int arglen, const void *vargs, OSCTimeTag when, NetworkReturnAddressPtr ra)
void playNote (void *con, int arglen, const void *vargs, OSCTimeTag when, NetworkReturnAddressPtr ra)
void playWithArgs (void *con, int arglen, const void *vargs, OSCTimeTag when, NetworkReturnAddressPtr ra)
void addOSCMethod (char *name, OSC_CALL_BACK function)
void addOSCMethod2 (char *name, OSC_CALL_BACK function, void *user_data)

Variables

int done = 0
static lo_server_thread sSrvThrd

Define Documentation

#define MAX_ACCESSORS   64

#define addOSCMethod ( name,
nfunction   )     lo_server_thread_add_method(sSrvThrd, nname, NULL, nfunction, NULL)


Function Documentation

void error ( int  num,
const char *  m,
const char *  path 
)

int generic_handler ( const char *  path,
const char *  types,
lo_arg **  argv,
int  argc,
void *  data,
void *  user_data 
)

References csl::logMsg().

Referenced by initOSC(), and mainOSCLoop().

int foo_handler ( const char *  path,
const char *  types,
lo_arg **  argv,
int  argc,
void *  data,
void *  user_data 
)

int quit_handler ( const char *  path,
const char *  types,
lo_arg **  argv,
int  argc,
void *  data,
void *  user_data 
)

References quitCSL().

Referenced by initOSC(), and mainOSCLoop().

void initOSCReceive (  ) 

References error(), and sSrvThrd.

void initOSCAddrSpace (  ) 

void setupOSCInstrLibrary ( std::vector< Instrument * >  library  ) 

void addOSCMethod2 ( name  ,
nfunction  ,
void *  user_data 
)

lo_server_thread_add_method ( sSrvThrd  ,
"/foo/bar"  ,
"fi"  ,
foo_handler  ,
NULL   
)

void mainOSCLoop ( int  port  ) 

void quitCSL (  ) 

void floatParamSetter ( void *  con,
int  arglen,
const void *  vargs,
OSCTimeTag  when,
NetworkReturnAddressPtr  ra 
)

void intParamSetter ( void *  con,
int  arglen,
const void *  vargs,
OSCTimeTag  when,
NetworkReturnAddressPtr  ra 
)

void stringParamSetter ( void *  con,
int  arglen,
const void *  vargs,
OSCTimeTag  when,
NetworkReturnAddressPtr  ra 
)

void playNote ( void *  con,
int  arglen,
const void *  vargs,
OSCTimeTag  when,
NetworkReturnAddressPtr  ra 
)

void playWithArgs ( void *  con,
int  arglen,
const void *  vargs,
OSCTimeTag  when,
NetworkReturnAddressPtr  ra 
)

void addOSCMethod ( char *  name,
OSC_CALL_BACK  function 
)

void addOSCMethod2 ( char *  name,
OSC_CALL_BACK  function,
void *  user_data 
)


Variable Documentation

int done = 0

lo_server_thread sSrvThrd [static]


Generated on Thu Sep 17 23:14:16 2009 for CSL by  doxygen 1.5.8