diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-15 17:47:40 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-15 17:47:40 +1000 |
commit | 83ca73b299d6d6df810eeb0ebff803f67d7be3ac (patch) | |
tree | a65130b6a95c69c0f8e1090002ac0ae757fc4ad2 /source/frontend/StarChatBubbleManager.cpp | |
parent | 63c9e3ec8b51a9d96872a054a0d35e8591b3535d (diff) |
Add volume and pitch to projectile sound actions
did it to some chat bubble thing too lol, why not.
Diffstat (limited to 'source/frontend/StarChatBubbleManager.cpp')
-rw-r--r-- | source/frontend/StarChatBubbleManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/frontend/StarChatBubbleManager.cpp b/source/frontend/StarChatBubbleManager.cpp index 3137353..b08e292 100644 --- a/source/frontend/StarChatBubbleManager.cpp +++ b/source/frontend/StarChatBubbleManager.cpp @@ -311,6 +311,8 @@ void ChatBubbleManager::addChatActions(List<ChatAction> chatActions, bool silent auto assets = Root::singleton().assets(); AudioInstancePtr audioInstance = make_shared<AudioInstance>(*assets->audio(*sound)); audioInstance->setPosition(position); + audioInstance->setVolume(config.getFloat("volume", 1.0f)); + audioInstance->setPitchMultiplier(config.getFloat("pitch", 1.0f)); m_guiContext->playAudio(audioInstance); } } |