Plasma Engine  2.0
Loading...
Searching...
No Matches
AudioSystemPreferences.h
1#pragma once
2
3#include <EditorPluginAudioSystem/EditorPluginAudioSystemDLL.h>
4
5#include <EditorFramework/IPC/EngineProcessConnection.h>
6#include <EditorFramework/Preferences/Preferences.h>
7
8class PL_EDITORPLUGINAUDIOSYSTEM_DLL plAudioSystemProjectPreferences : public plPreferences
9{
10 PL_ADD_DYNAMIC_REFLECTION(plAudioSystemProjectPreferences, plPreferences);
11
12public:
15
18 void SetMute(bool bMute);
19
22 [[nodiscard]] bool GetMute() const { return m_bMute; }
23
26 void SetGain(float fGain);
27
30 [[nodiscard]] float GetGain() const { return m_fGain; }
31
34 void SyncCVars();
35
36private:
37 void ProcessEventHandler(const plEditorEngineProcessConnection::Event& e);
38
39 bool m_bMute{false};
40 float m_fGain{1.0f};
41};
Definition AudioSystemPreferences.h:9
bool GetMute() const
Gets the current mute state of the audio system.
Definition AudioSystemPreferences.h:22
float GetGain() const
Gets the current gain value of the audio system.
Definition AudioSystemPreferences.h:30
Base class for all preferences.
Definition Preferences.h:17
Definition EngineProcessConnection.h:63