mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 12:39:13 +12:00
Merge branch 'master' into fastmem
This commit is contained in:
commit
57433bb9eb
11 changed files with 67 additions and 10 deletions
|
@ -1,12 +1,21 @@
|
|||
#pragma once
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
|
||||
#include "audio/dsp_core.hpp"
|
||||
#include "renderer.hpp"
|
||||
#include "frontend_settings.hpp"
|
||||
#include "renderer.hpp"
|
||||
|
||||
struct AudioDeviceConfig {
|
||||
// Audio curve to use for volumes between 0-100
|
||||
enum class VolumeCurve : int {
|
||||
Cubic = 0, // Samples are scaled by volume ^ 3
|
||||
Linear = 1, // Samples are scaled by volume
|
||||
};
|
||||
|
||||
float volumeRaw = 1.0f;
|
||||
VolumeCurve volumeCurve = VolumeCurve::Cubic;
|
||||
|
||||
bool muteAudio = false;
|
||||
|
||||
float getVolume() const {
|
||||
|
@ -16,6 +25,9 @@ struct AudioDeviceConfig {
|
|||
|
||||
return volumeRaw;
|
||||
}
|
||||
|
||||
static VolumeCurve volumeCurveFromString(std::string inString);
|
||||
static const char* volumeCurveToString(VolumeCurve curve);
|
||||
};
|
||||
|
||||
// Remember to initialize every field here to its default value otherwise bad things will happen
|
||||
|
|
|
@ -19,6 +19,7 @@ struct FrontendSettings {
|
|||
Rsyn = 1,
|
||||
Rnap = 2,
|
||||
Rcow = 3,
|
||||
SkyEmu = 4,
|
||||
};
|
||||
|
||||
Theme theme = Theme::Dark;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue