-
Notifications
You must be signed in to change notification settings - Fork 1
/
DMXManager.h
47 lines (35 loc) · 1.01 KB
/
DMXManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
==============================================================================
DMXManager.h
Created: 6 Apr 2017 10:23:15pm
Author: Ben
==============================================================================
*/
#pragma once
#define ARTNET_PORT 3333
#define ARTNET_ACK_ONLY 0
#define ARTNET_FULL_INFO 1
#define ARTNET_SPECIFIC_INFO 2
class DMXManager
//public Timer,
//public Thread
{
public:
juce_DeclareSingleton(DMXManager, true)
DMXManager();
~DMXManager();
//DatagramSocket artNetUDP;
void checkForArtNetDevices();
void sendArtNetPollRequest(int type);
class DMXManagerListener
{
public:
virtual ~DMXManagerListener() {}
};
ListenerList<DMXManagerListener> dmxManagerListeners;
void addDMXManagerListener(DMXManagerListener* newListener) { dmxManagerListeners.add(newListener); }
void removeDMXManagerListener(DMXManagerListener* listener) { dmxManagerListeners.remove(listener); }
//void timerCallback() override;
//Inherited via Thread
//virtual void run() override;
};