LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
osc_notify.h
Go to the documentation of this file.
1 // osc_notify.h
2 // LiVES (lives-exe)
3 // (c) G. Finch 2008 - 2010
4 // Released under the GPL 3 or later
5 // see file ../COPYING for licensing details
6 
7 
8 // this is a system for monitoring LiVES using OSC
9 
10 // for example, LiVES can be started like: lives -oscstart 49999
11 // a client can then connect to UDP port 49999, and can ask LiVES to open a notify socket on UDP port 49997
12 // sendOSC -host localhost 49999 /lives/open_notify_socket,49997
13 //
14 // LiVES will then send messages of the form:
15 // msg_number|msg_string
16 // (msg_string may be of 0 length. The message is terminated with \n\0).
17 // when various events happen. The event types are enumerated below.
18 //
19 
20 #ifndef HAS_LIVES_OSC_NOTIFY_H
21 #define HAS_LIVES_OSC_NOTIFY_H
22 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 #define LIVES_OSC_NOTIFY_FRAME_SYNCH 1
32 #define LIVES_OSC_NOTIFY_PLAYBACK_STARTED 2
33 #define LIVES_OSC_NOTIFY_PLAYBACK_STOPPED 3
34 
35 #define LIVES_OSC_NOTIFY_PLAYBACK_STOPPED_RD 4
38 
39 #define LIVES_OSC_NOTIFY_RECORD_STARTED 32
40 #define LIVES_OSC_NOTIFY_RECORD_STOPPED 33
41 
42 #define LIVES_OSC_NOTIFY_QUIT 64
43 
44 #define LIVES_OSC_NOTIFY_CLIP_OPENED 128
45 #define LIVES_OSC_NOTIFY_CLIP_CLOSED 129
46 
47 #define LIVES_OSC_NOTIFY_CLIPSET_OPENED 256
48 #define LIVES_OSC_NOTIFY_CLIPSET_SAVED 257
49 
50 #define LIVES_OSC_NOTIFY_SUCCESS 512
51 #define LIVES_OSC_NOTIFY_FAILED 1024
52 #define LIVES_OSC_NOTIFY_CANCELLED 2048
53 
54 #define LIVES_OSC_NOTIFY_MODE_CHANGED 4096
55 
56 // >= 65536 reserved for custom
57 
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif