MCPcopy Create free account
hub / github.com/CalcProgrammer1/KeyboardVisualizer / Visualizer

Class Visualizer

KeyboardVisualizerCommon/Visualizer.h:100–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98} ControllerIndexType;
99
100class Visualizer
101{
102public:
103 Visualizer();
104
105 //Initializes the visualizer
106 void Initialize();
107
108 //Initialize the audio devices list
109 void InitAudioDeviceList();
110
111 //Function to start thread
112 void StartThread();
113
114 //Thread Functions
115 void LEDUpdateThreadFunction();
116 void NetConnectThreadFunction();
117 void NetUpdateThreadFunction();
118 void VisThreadFunction();
119
120 //Connect to OpenRGB
121 NetworkClient *OpenRGBConnect(const char *ip, unsigned short port);
122
123 //Disconnect from OpenRGB
124 void OpenRGBDisconnect(NetworkClient * client);
125
126 //Called when settings changed
127 void OnSettingsChanged();
128
129 //Send Settings to network clients
130 void SendSettings();
131
132 //Initialize Server
133 void InitServer(char * serverstring);
134
135 //Initialize CLient
136 void InitClient(char * clientstring);
137
138 //Change Audio Device
139 void ChangeAudioDevice();
140
141 //Update function
142 void Update();
143
144 //Draw Pattern
145 void DrawPattern(VISUALIZER_PATTERN pattern, int bright, vis_pixels *pixels);
146
147 //Shut Down
148 void Shutdown();
149
150 //Save Settings File
151 void SaveSettings();
152
153 //Compute normalization line
154 void SetNormalization(float offset, float scale);
155
156 //Calculated FFT
157 float fft[256];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected