-
Notifications
You must be signed in to change notification settings - Fork 7
/
headers.h
49 lines (44 loc) · 1017 Bytes
/
headers.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
#include <iostream>
#include <stdlib.h>
#include <cmath>
#include <time.h>
#include <vector>
#include <array>
#include <SFML/Audio.hpp>
#include <string>
#include <sstream>
#include <iomanip>
#include <chrono>
#include <sys/time.h>
#include "kissfft/kiss_fft.h"
#include <GL/glut.h>
#include <GL/glext.h>
#include <GL/freeglut.h>
#include <dirent.h> // For searching current directory
#ifndef M_PI
#define M_PI 3.14159265358979324
#endif
#define N 1024
using namespace std;
extern std::vector<int> ampdb;
extern std::vector<int> frequency;
extern int countr,countg,countb;
extern int j;
extern float r; //circle "r"
extern float d; //cuboid width/2
extern float deg;
extern vector< array<double,60> > avgarr; //for average value
extern double SAMPLE_COUNT;
extern double SAMPLE_RATE;
extern float curtime;
extern kiss_fft_cpx in[N], out[N];
void circle3d();
void bars();
void dust();
void pentagon();
//void CubicalMesh();
void waves();
//void mesh3D();
//void DWaves();
void pausebutton();
void nav();