/
PiSettings.h
31 lines (27 loc) · 1.08 KB
/
PiSettings.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
#ifndef PiSettings_h
#define PiSettings_h
#include <iostream>
class PiSettings {
public:
int nChannels = -1;
int windowWidth = -1, windowHeight = -1;
int audioDeviceID = -1;
float dur_in_mins = -1;
bool exit; // If the user cancels running approx pi
int appType = -1; // 0 = single window; 1 = multi-window; -1 = not set
int sample_rate = 44100;
bool doneSetup = false;
bool appliedSettings = false;
void print(void)
{
std::cout << "Settings" << std::endl;
std::cout << "NChannels: " << nChannels << std::endl;
std::cout << "App Type: " << (appType ? "Single Window" : "Multi Window") << std::endl;
std::cout << "Resolution: " << windowWidth << "x" << windowHeight << std::endl;
std::cout << "audioDeviceID: " << audioDeviceID << std::endl;
std::cout << "Sample Rate: " << sample_rate << std::endl;
std::cout << "Duration: " << dur_in_mins << " minutes"<< std::endl;
std::cout << "Aborted: " << (exit ? "True" : "False" ) << std::endl;
}
};
#endif