You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
- #include "common.hpp"
- #include "math.hpp"
- #include <jansson.h>
-
-
- namespace rack {
-
-
- struct Settings {
- std::string token;
- math::Vec windowSize;
- math::Vec windowPos;
- float zoom = 1.0;
- float cableOpacity = 0.5;
- float cableTension = 0.5;
- bool allowCursorLock = true;
- float sampleRate = 44100.0;
- int threadCount = 1;
- bool paramTooltip = false;
- bool cpuMeter = false;
- bool lockModules = false;
- bool checkVersion = true;
- float frameRateLimit = 70.0;
- bool frameRateSync = true;
- bool skipLoadOnLaunch = false;
- std::string patchPath;
-
- json_t *toJson();
- void fromJson(json_t *rootJ);
- void save(std::string filename);
- void load(std::string filename);
- };
-
-
- extern Settings settings;
-
-
- } // namespace rack
|