bool UAdvancedVoiceLibrary::UnRegisterRemoteTalker(const FBPUniqueNetId& UniqueNetId) { IOnlineVoicePtr VoiceInterface = Online::GetVoiceInterface(); if (!VoiceInterface.IsValid()) { UE_LOG(AdvancedVoiceLog, Warning, TEXT("UnRegister Remote Talker couldn't get the voice interface!")); return false; } return VoiceInterface->UnregisterRemoteTalker(*UniqueNetId.GetUniqueNetId()); }
void FOnlineSessionNull::UnregisterVoice(const FUniqueNetId& PlayerId) { IOnlineVoicePtr VoiceInt = NullSubsystem->GetVoiceInterface(); if (VoiceInt.IsValid()) { if (!NullSubsystem->IsLocalPlayer(PlayerId)) { if (VoiceInt.IsValid()) { VoiceInt->UnregisterRemoteTalker(PlayerId); } } } }