-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVisualiser.h
More file actions
67 lines (59 loc) · 1.64 KB
/
Visualiser.h
File metadata and controls
67 lines (59 loc) · 1.64 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef FFT_MUSIC_VISUALISER_VISUALISER_H
#define FFT_MUSIC_VISUALISER_VISUALISER_H
#include <wx/wx.h>
#include "../../config/config.h"
#include "../time/Time.h"
/*
* Visualiser
* This class represents a custom visualiser
*/
class Visualiser {
public:
Visualiser();
/*
* Render visualiser
* This method render the visualiser
*/
void render_visualiser(Graphics graphics);
/*
* Update visualiser
* This method updates the visualizer
*/
void update_visualiser();
protected:
double_array frequency_spectrum_left;
double_array frequency_spectrum_right;
int total_time;
int remaining_time;
/*
* Render the visualiser
* This method renders the custom visualiser and its components
*/
virtual void render(Graphics graphics) {}
/*
* Update the visualiser
* This method updates the custom visualiser and its components
*/
virtual void update() {}
/*
* Initialize default frequency spectrum values
* This method initializes the default values of the frequency spectrum
*/
virtual void init_default_frequency_spectrum();
/*
* Copy frequency spectrum from audio stream
* This method copies the frequency spectrum from the audio thread
*/
virtual void copy_frequency_spectrum();
/*
* Update the remaining audio playback time
* This method calculates the remaining audio playback time
*/
void update_remaining_time();
/*
* Render the remaining audio playback time
* This method renders the remaining audio playback time
*/
void render_remaining_time(Graphics graphics);
};
#endif