Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarMainMixer.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-26 19:25:37 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-26 19:25:37 +1000
commit68d20787cf8540ebc22a45e6e82afbf8ad4dea15 (patch)
treedd9e900c85120fb76749e02085686c836f082ae9 /source/frontend/StarMainMixer.hpp
parent4b9b02783f1bbfc1049e11b606883c5cfa0b215e (diff)
The camera is now also an audio listener
Diffstat (limited to 'source/frontend/StarMainMixer.hpp')
-rw-r--r--source/frontend/StarMainMixer.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/frontend/StarMainMixer.hpp b/source/frontend/StarMainMixer.hpp
index e0f1223..ecf9443 100644
--- a/source/frontend/StarMainMixer.hpp
+++ b/source/frontend/StarMainMixer.hpp
@@ -7,6 +7,7 @@
namespace Star {
STAR_CLASS(UniverseClient);
+STAR_CLASS(WorldPainter);
STAR_CLASS(MainMixer);
class MainMixer {
@@ -14,6 +15,7 @@ public:
MainMixer(unsigned sampleRate, unsigned channels);
void setUniverseClient(UniverseClientPtr universeClient);
+ void setWorldPainter(WorldPainterPtr worldPainter);
void update(bool muteSfx = false, bool muteMusic = false);
@@ -24,6 +26,7 @@ public:
private:
UniverseClientPtr m_universeClient;
+ WorldPainterPtr m_worldPainter;
MixerPtr m_mixer;
Set<MixerGroup> m_mutedGroups;
Map<MixerGroup, float> m_groupVolumes;