diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-01-03 20:08:57 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-01-03 20:08:57 +1100 |
commit | ddc64fb14caded7e49c0886cfa58b1ca82900262 (patch) | |
tree | 7086be21fb4bd2b5475746f9ae0c68544d90a81a /source/frontend/StarMainMixer.cpp | |
parent | 91cf2d82515583d7627ce3fd452f81e345918144 (diff) |
Fix up and add options menu slider
Diffstat (limited to 'source/frontend/StarMainMixer.cpp')
-rw-r--r-- | source/frontend/StarMainMixer.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source/frontend/StarMainMixer.cpp b/source/frontend/StarMainMixer.cpp index 16fb736..a0f5e2b 100644 --- a/source/frontend/StarMainMixer.cpp +++ b/source/frontend/StarMainMixer.cpp @@ -54,14 +54,9 @@ void MainMixer::update(float dt, bool muteSfx, bool muteMusic) { currentWorld = m_universeClient->worldClient(); if (currentWorld) { - for (auto audioInstance : currentWorld->pullPendingAudio()) { - audioInstance->setMixerGroup(MixerGroup::Effects); + for (auto audioInstance : currentWorld->pullPendingAudio()) m_mixer->play(audioInstance); - } - for (auto audioInstance : currentWorld->pullPendingInstrumentAudio()) { - audioInstance->setMixerGroup(MixerGroup::Instruments); - m_mixer->play(audioInstance); - } + for (auto audioInstance : currentWorld->pullPendingMusic()) { audioInstance->setMixerGroup(MixerGroup::Music); m_mixer->play(audioInstance); |