From 4b0bc220e4da1173f742a4973939b139bef562db Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 21 Jul 2023 00:58:49 +1000 Subject: Support for changing the game's timescale Context-specific (like per-world) timescales can also be added later --- source/frontend/StarMainMixer.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/frontend/StarMainMixer.hpp') diff --git a/source/frontend/StarMainMixer.hpp b/source/frontend/StarMainMixer.hpp index 2582a2f..9e5ba3f 100644 --- a/source/frontend/StarMainMixer.hpp +++ b/source/frontend/StarMainMixer.hpp @@ -17,10 +17,11 @@ public: void setUniverseClient(UniverseClientPtr universeClient); void setWorldPainter(WorldPainterPtr worldPainter); - void update(bool muteSfx = false, bool muteMusic = false); + void update(float dt, bool muteSfx = false, bool muteMusic = false); MixerPtr mixer() const; + void setSpeed(float speed); void setVolume(float volume, float rampTime = 0.0f); void read(int16_t* sampleData, size_t frameCount, Mixer::ExtraMixFunction = {}); -- cgit v1.2.3