-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobal.h
139 lines (133 loc) · 3.61 KB
/
Global.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#pragma once
//------------------------------------------------------
// Check windows Envrioment Bit
#if _WIN32 || _WIN64
#if _WIN64
#define ENV_BIT 64
#else
#define ENV_BIT 32
#endif
#endif
//------------------------------------------------------
//Windows Includes
#include <windows.h>
#include <string>
#include <process.h>
#include <fstream>
using namespace std;
//------------------------------------------------------
//Structures
struct PL_ENTRY{
string filepath;
string displayname;
string title;
string artist;
string album;
string year;
string comment;
char rating;
PL_ENTRY()
{
filepath = "";
displayname = "";
title = "No Title";
artist = "No Artist";
album = "No Album";
year = "No Year";
comment = "No Comment";
rating = -1;
}
};
//------------------------------------------------------
//Classes
//------------------------------------------------------
//Hi Res Timer
#include "HRTimer.h"
extern HRTimer cHRTimer;
//------------------------------------------------------
//FLUID
#include "Fuzon_Mp3.h"
//------------------------------------------------------
//Math
#include "Math_System.h"
extern Math_System cMath;
//------------------------------------------------------
//Network
#include "Network_System.h"
extern Network_System cNet;
//------------------------------------------------------
//File System
#include "File_System.h"
extern File_System cFile;
//------------------------------------------------------
//Bass Audio System
#include "bass_audio.h"
extern bass_audio cBass;
//------------------------------------------------------
//Thread System
#include "Thread_System.h"
extern Thread_System cThread;
//------------------------------------------------------
//VST WINDOW
extern HWND vstWindow;
//------------------------------------------------------
//Ui Class
#include "Ui.h"
//extern Ui cUi;
//------------------------------------------------------
//Playlist Data
extern PL_ENTRY *gPlaylist_Entry;
extern char gPlaylist_Rescan_State;
extern long gPlaylist_ArraySize;
extern long gPlaylist_ArrayIncreaseStepSize;
extern long gTotalFiles;
//playlist search
extern int gPlaylistSearchCharLength;
extern int gSearchEntries;
extern string gPlaylistSearchText;
extern int gPlaylistSearchId;
//------------------------------------------------------
//Ui Vars
extern char Text_Volume[12];
extern char Text_Seekbar[64];
extern char Text_AmpGain[64];
//intro animations
extern bool gInto_Animation_Completed;
extern double gInto_Animation_Timer;
extern const double gInto_Animation_Timer_MAX;
//Bottom Panel
extern const float gBottomPanel_Target_X;
extern float gBottomPanel_Target_Y;
extern float gBottomPanel_Current_Y;
extern float gBottomPanel_TendTo;
extern int BottomPanelID;
extern double Calc_Bpm_Value;
///Window states
extern bool gWindow_PlaylistManager;
///Update Rate
extern double gET_Multi;
extern double updateTimerSpeed_User;
extern double updateTimerSpeed;
///Play ID's
extern int gPlay_CurrentId;
extern int gPlay_PreviousId;
//Options Menu
extern int gOptions_Choice_SubMenu;
//Spectrum Colour
extern unsigned char gSpectrum_R;
extern unsigned char gSpectrum_G;
extern unsigned char gSpectrum_B;
//------------------------------------------------------
//Global Timers
extern double gTimer;
extern const double gTimer_Max;
extern bool gTimer_Activated;
//------------------------------------------------------
//Debug
extern double gDebug_ScanTime;
extern double gDebug_TagTime;
extern unsigned long gDebug_Tagged_ID3V1;
//------------------------------------------------------
//Functions
extern void ReplaceString(string &Input, string Find, string Replace);
//------------------------------------------------------