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

summaryrefslogtreecommitdiff
path: root/source/client/StarClientApplication.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-14 13:13:19 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-14 13:13:19 +1000
commit3b38825b34ebb95b59989934dc849858cee42c97 (patch)
treef044311d8cbf1d687bfcf807e5bf8764406ba000 /source/client/StarClientApplication.cpp
parentf14f77724d6a06b759280c0885ce1102388faa38 (diff)
more voice stuff
Diffstat (limited to 'source/client/StarClientApplication.cpp')
-rw-r--r--source/client/StarClientApplication.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp
index f1c7595..8093582 100644
--- a/source/client/StarClientApplication.cpp
+++ b/source/client/StarClientApplication.cpp
@@ -375,6 +375,14 @@ void ClientApplication::update() {
else if (m_state > MainAppState::Title)
updateRunning();
+ { // testing
+ m_voice->setLocalSpeaker(0);
+ m_voice->setInput(m_input->bindHeld("opensb", "pushToTalk"));
+ DataStreamBuffer data;
+ if (m_voice->send(data, 5000))
+ m_voice->receive(m_voice->speaker(0), std::string_view(data.ptr(), data.size()));
+ }
+
m_guiContext->cleanup();
m_edgeKeyEvents.clear();
m_input->reset();