#include "OSC_support.h"#include "lo/lo.h"Classes | |
| struct | Inst_Context |
Functions | |
| void | osc_error (int num, const char *msg, const char *path) |
| void | quitCSL () |
| int | quit_handler (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
| int | generic_handler (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
| void | initOSC (const char *thePort) |
| void | mainOSCLoop () |
| int | paramSetter (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
| int | playNote (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
| int | playWithArgs (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
| void | setupOSCInstrLibrary (std::vector< Instrument * > library) |
Variables | |
| static int | done = 0 |
| static lo_server_thread | sSrvThrd |
| void osc_error | ( | int | num, | |
| const char * | msg, | |||
| const char * | path | |||
| ) |
| void quitCSL | ( | ) |
Referenced by mainOSCLoop(), quit_handler(), and quitMethod().
| int quit_handler | ( | const char * | path, | |
| const char * | types, | |||
| lo_arg ** | argv, | |||
| int | argc, | |||
| void * | data, | |||
| void * | user_data | |||
| ) |
Referenced by initOSC(), and mainOSCLoop().
| int generic_handler | ( | const char * | path, | |
| const char * | types, | |||
| lo_arg ** | argv, | |||
| int | argc, | |||
| void * | data, | |||
| void * | user_data | |||
| ) |
Referenced by initOSC(), and mainOSCLoop().
| void initOSC | ( | const char * | thePort | ) |
References generic_handler(), lo_server_thread_add_method(), osc_error(), quit_handler(), and sSrvThrd.
Referenced by main().
| void mainOSCLoop | ( | ) |
| int paramSetter | ( | const char * | path, | |
| const char * | types, | |||
| lo_arg ** | argv, | |||
| int | argc, | |||
| void * | data, | |||
| void * | user_data | |||
| ) |
References Inst_Context::instr, Inst_Context::selector, and csl::Instrument::setParameter().
Referenced by setupOSCInstrLibrary().
| int playNote | ( | const char * | path, | |
| const char * | types, | |||
| lo_arg ** | argv, | |||
| int | argc, | |||
| void * | data, | |||
| void * | user_data | |||
| ) |
References Inst_Context::instr, csl::logMsg(), Inst_Context::num, and csl::Instrument::play().
Referenced by setupOSCInstrLibrary().
| int playWithArgs | ( | const char * | path, | |
| const char * | types, | |||
| lo_arg ** | argv, | |||
| int | argc, | |||
| void * | data, | |||
| void * | user_data | |||
| ) |
References Inst_Context::instr, and csl::Instrument::playOSC().
Referenced by setupOSCInstrLibrary().
| void setupOSCInstrLibrary | ( | std::vector< Instrument * > | library | ) |
References csl::Instrument::getAccessors(), Inst_Context::instr, testkiss::j, lo_server_thread_add_method(), csl::logMsg(), csl::Instrument::name(), Inst_Context::num, csl::Instrument::numAccessors(), paramSetter(), playNote(), playWithArgs(), Inst_Context::selector, and sSrvThrd.
Referenced by main().
int done = 0 [static] |
Referenced by mainOSCLoop(), OSC_loop(), and quitCSL().
lo_server_thread sSrvThrd [static] |
Referenced by init_OSC(), initOSC(), initOSCReceive(), mainOSCLoop(), OSC_loop(), quitCSL(), and setupOSCInstrLibrary().
1.5.8