-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.h
43 lines (32 loc) · 859 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
37
38
39
40
41
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
// #include "imguihelper.h"
// #include "imgui_plot.h"
// #include "imguifilesystem.h"
#include "imgui_internal.h"
// Struct that holds the application's state
struct AppState
{
char file_path[PATH_MAX];
char queue_folder[PATH_MAX];
bool playing = false;
float volume = 1.0f;
float playhead = 0.0f;
bool loop = false;
uint32_t selection_start = 0;
uint32_t selection_length = 1000;
uint32_t wav_len = 1024;
uint32_t fft_len = 256;
char message[1024];
bool show_main_window = true;
bool mini_mode = false;
bool show_style_editor = false;
bool show_demo_window = false;
};
extern AppState appState;
extern ImFont *gTechFont;
extern ImFont *gIconFont;
void MainInit(int argc, char** argv);
bool MainGui();
void MainCleanup();