LiVES 1.3.11-svn
|
00001 // osc_notify.h 00002 // LiVES (lives-exe) 00003 // (c) G. Finch 2008 - 2010 00004 // Released under the GPL 3 or later 00005 // see file ../COPYING for licensing details 00006 00007 00008 // this is a system for monitoring LiVES using OSC 00009 00010 // for example, LiVES can be started like: lives -oscstart 49999 00011 // a client can then connect to UDP port 49999, and can ask LiVES to open a notify socket on UDP port 49997 00012 // sendOSC -host localhost 49999 /lives/open_notify_socket,49997 00013 // 00014 // LiVES will then send messages of the form: 00015 // msg_number|msg_string 00016 // (msg_string may be of 0 length. The message is terminated with \n\0). 00017 // when various events happen. The event types are enumerated below. 00018 // 00019 00020 #ifndef _HAS_OSC_NOTIFY_H 00021 #define _HAS_OSC_NOTIFY_H 00022 00023 #define LIVES_OSC_NOTIFY_FRAME_SYNCH 1 ///< sent when a frame is displayed 00024 #define LIVES_OSC_NOTIFY_PLAYBACK_STARTED 2 ///< sent when a/v playback starts or clip is switched 00025 #define LIVES_OSC_NOTIFY_PLAYBACK_STOPPED 3 ///< sent when a/v playback ends 00026 00029 #define LIVES_OSC_NOTIFY_PLAYBACK_STOPPED_RD 4 00030 00031 00032 #define LIVES_OSC_NOTIFY_RECORD_STARTED 32 ///< sent when record starts (TODO) 00033 #define LIVES_OSC_NOTIFY_RECORD_STOPPED 33 ///< sent when record stops (TODO) 00034 00035 #define LIVES_OSC_NOTIFY_QUIT 64 ///< sent when app quits 00036 00037 #define LIVES_OSC_NOTIFY_CLIP_OPENED 128 ///< msg_string starts with new clip number 00038 #define LIVES_OSC_NOTIFY_CLIP_CLOSED 129 00039 00040 00041 #define LIVES_OSC_NOTIFY_CLIPSET_OPENED 256 ///< msg_string starts with setname 00042 #define LIVES_OSC_NOTIFY_CLIPSET_SAVED 257 00043 00044 00045 #define LIVES_OSC_NOTIFY_SUCCESS 512 00046 #define LIVES_OSC_NOTIFY_FAILED 1024 00047 #define LIVES_OSC_NOTIFY_CANCELLED 2048 00048 00049 #define LIVES_OSC_NOTIFY_MODE_CHANGED 4096 ///< mode changed to clip editor or to multitrack 00050 00051 #endif