wip: settings in effect
This commit is contained in:
parent
8e07b1efdd
commit
1ae324b68a
8 changed files with 277 additions and 158 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "global.h"
|
||||
#include "settings.h"
|
||||
#include "contsessionclasses.h"
|
||||
//#define invoke_mem_fn(object,ptrToMember) ((object).*(ptrToMember))
|
||||
//#define pinvoke_mem_fn(object,ptrToMember) ((object)->*(ptrToMember))
|
||||
|
|
@ -16,11 +17,13 @@ struct BackEndpointVolumeCallbackInfo {
|
|||
NGuid caller;
|
||||
bool muted;
|
||||
float mainVolume;
|
||||
size_t channels;
|
||||
size_t channels;
|
||||
std::vector<float> channelVolumes;
|
||||
bool updateName = false;
|
||||
};
|
||||
|
||||
void setConfigDirToDefaults();
|
||||
|
||||
class EndpointHandler {
|
||||
|
||||
public:
|
||||
|
|
@ -97,6 +100,9 @@ class OverseerHandler {
|
|||
|
||||
public:
|
||||
OverseerHandler();
|
||||
static void setSettingsPath(std::string path);
|
||||
static std::string getSettingsPath();
|
||||
static inline std::string settingsPath;
|
||||
void populateSystemValues();
|
||||
void openControlPanel();
|
||||
ProcessedNativeEvent processTopLevelWindowMessage(void* msg);
|
||||
|
|
@ -143,6 +149,7 @@ private:
|
|||
|
||||
/* Session's */
|
||||
std::function<void(float)> changeSessionVolume;
|
||||
|
||||
//std::function<void(uint64_t /* device */, uint32_t /* channel */, float /* value */)> updateFrontVolumeCallback;
|
||||
//std::function<void(uint64_t /* device */, bool /* mute */)> updateFrontMuteCallback;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue