-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.h
36 lines (33 loc) · 936 Bytes
/
App.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
//
// Created by vincenzo on 27/10/22.
//
#ifndef CHIPEMULATOR_APP_H
#define CHIPEMULATOR_APP_H
#include "Window.h"
#include "RenderEngine.h"
#include "ChipInterpreterHandler.h"
#include "SoundEngine.h"
#include "Synth/SquareWaveTableSynth.h"
#include "ArgParser.h"
#include "Filters/CrtFilter.h"
#include <memory>
class App {
public:
virtual ~App();
App(int argc, char *argv[]);
void run();
private:
std::unique_ptr<ArgParser> argParser;
Window* window= nullptr;
SoundEngine* soundEngine= nullptr;
SquareWaveTableSynth synth=SquareWaveTableSynth(SoundEngine::samplePerSecond);
std::unique_ptr<ChipInterpreterHandler> chipInterpreterHandler= nullptr;
RenderEngine engine;
CrtFilter crtFilter;
void setupCommandlineParser(int argc, char *argv[]);
void setupWindow();
void setupSoundEngine();
void setupInterpreter();
void setupRenderEngine();
};
#endif //CHIPEMULATOR_APP_H