-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.h
29 lines (23 loc) · 882 Bytes
/
globals.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
#ifndef GLOBALS
#define GLOBALS
#include "tinywav/tinywav.h"
#define FPS 60
// Parameters passed to the Raylib audio functions
// SetAudioStreamBufferSizeDefault() and LoadAudioStream()
#define MAX_SAMPLES_PER_UPDATE 9192
#define SAMPLE_RATE 96000
#define BIT_DEPTH 16
// Are we recording?
extern bool is_recording;
// How many recordings have we made so far?
extern int recording_count;
// Struct to facilitate .wav output
extern TinyWav tw;
// At each frame, if the mouse x displacement (as measured by GetMouseDelta()) >
// mouse y displacement, then mouse_dx = mouse x displacement and mouse_dy = 0.
// Similarly if mouse x displacement < mouse y displacement.
// I programmed it this way to prevent accidental glissing (caused by vertical
// mouse movement) while changing volume (caused by horizontal mouse movement).
extern float mouse_dx;
extern float mouse_dy;
#endif