comparison data/osc/OSCQueue.h @ 1664:f66ad018b729 osc-script

Toward running an OSC script in batch
author Chris Cannam
date Mon, 25 Mar 2019 15:48:16 +0000
parents ad5f892c0c4d
children 1078f0ef3012
comparison
equal deleted inserted replaced
1663:a77a7e8c085c 1664:f66ad018b729
41 41
42 bool isOK() const; 42 bool isOK() const;
43 43
44 bool isEmpty() const { return getMessagesAvailable() == 0; } 44 bool isEmpty() const { return getMessagesAvailable() == 0; }
45 int getMessagesAvailable() const; 45 int getMessagesAvailable() const;
46 void postMessage(OSCMessage);
46 OSCMessage readMessage(); 47 OSCMessage readMessage();
47 48
48 QString getOSCURL() const; 49 QString getOSCURL() const;
49 50
50 signals: 51 signals:
57 static void oscError(int, const char *, const char *); 58 static void oscError(int, const char *, const char *);
58 static int oscMessageHandler(const char *, const char *, lo_arg **, 59 static int oscMessageHandler(const char *, const char *, lo_arg **,
59 int, lo_message, void *); 60 int, lo_message, void *);
60 #endif 61 #endif
61 62
62 void postMessage(OSCMessage);
63 bool parseOSCPath(QString path, int &target, int &targetData, QString &method); 63 bool parseOSCPath(QString path, int &target, int &targetData, QString &method);
64 64
65 RingBuffer<OSCMessage *> m_buffer; 65 RingBuffer<OSCMessage *> m_buffer;
66 }; 66 };
67 67