| 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | #include <stdbool.h> |
| 5 | |
| 6 | enum |
| 7 | { |
| 8 | PIXELFILTER_NEAREST = 0, |
| 9 | PIXELFILTER_LINEAR = 1, |
| 10 | PIXELFILTER_BEST = 2 |
| 11 | }; |
| 12 | |
| 13 | typedef struct config_t |
| 14 | { |
| 15 | char *defModulesDir, *defSamplesDir; |
| 16 | bool waveformCenterLine, pattDots, compoMode, autoCloseDiskOp, hideDiskOpDates, hwMouse; |
| 17 | bool transDel, fullScreenStretch, vsyncOff, modDot, blankZeroFlag, realVuMeters, rememberPlayMode; |
| 18 | bool startInFullscreen, integerScaling, enableE8xEffect, noDownsampleOnSmpLoad, keepEditModeAfterStepPlay; |
| 19 | bool restrictedPattEditClick; |
| 20 | int8_t stereoSeparation, accidental; |
| 21 | bool autoFitVideoScale; |
| 22 | int8_t videoScaleFactor; |
| 23 | uint8_t pixelFilter, amigaModel; |
| 24 | uint16_t quantizeValue; |
| 25 | int32_t maxSampleLength; |
| 26 | uint32_t soundFrequency, soundBufferSize, audioInputFrequency, mod2WavOutputFreq; |
| 27 | } config_t; |
| 28 | |
| 29 | extern config_t config; // pt2_config.c |
| 30 | |
| 31 | void loadConfig(void); |