From 3b38825b34ebb95b59989934dc849858cee42c97 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 14 Jul 2023 13:13:19 +1000 Subject: more voice stuff --- source/client/StarClientApplication.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/client/StarClientApplication.cpp') 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(); -- cgit v1.2.3