Steam Voice Chat

Added Steam Voice Chat
This commit is contained in:
Risensy
2025-01-31 20:11:37 +03:00
parent 3809863570
commit 9b48d08d57
92 changed files with 121 additions and 27 deletions

View File

@@ -0,0 +1,23 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "VOIPLIB.h"
void UVOIPLIB::ClearVoicePackets(UObject* WorldContextObject)
{
UWorld* const World = GEngine->GetWorldFromContextObject(WorldContextObject, EGetWorldErrorMode::LogAndReturnNull);
if (!IsValid(World))
{
return;
}
IOnlineVoicePtr VoiceInterface = Online::GetVoiceInterface(World);
if (!VoiceInterface.IsValid())
{
UE_LOG(LogTemp, Warning, TEXT("Clear voice packets couldn't get the voice interface!"));
}
VoiceInterface->ClearVoicePackets();
}