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

summaryrefslogtreecommitdiff
path: root/source/client
diff options
context:
space:
mode:
Diffstat (limited to 'source/client')
-rw-r--r--source/client/StarClientApplication.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp
index b264f15..33327fa 100644
--- a/source/client/StarClientApplication.cpp
+++ b/source/client/StarClientApplication.cpp
@@ -214,6 +214,7 @@ void ClientApplication::applicationInit(ApplicationControllerPtr appController)
m_voice->loadJson(jVoice.toObject(), true);
m_voice->init();
+ m_voice->setLocalSpeaker(0);
}
void ClientApplication::renderInit(RendererPtr renderer) {
@@ -375,13 +376,12 @@ void ClientApplication::update() {
updateTitle();
else if (m_state > MainAppState::Title)
updateRunning();
-
- // swallow leftover encoded data incase we aren't in-game yet to allow mic read to continue.
- // TODO: directly disable encoding at menu so we don't have to do this
- {
+
+ // Swallow leftover encoded voice data if we aren't in-game to allow mic read to continue for settings.
+ if (m_state <= MainAppState::Title) {
DataStreamBuffer ext;
m_voice->send(ext);
- }
+ } // TODO: directly disable encoding at menu so we don't have to do this
m_guiContext->cleanup();
m_edgeKeyEvents.clear();