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

summaryrefslogtreecommitdiff
path: root/source/frontend/StarChatBubbleManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/frontend/StarChatBubbleManager.cpp')
-rw-r--r--source/frontend/StarChatBubbleManager.cpp2
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);
}
}