bool UAdvancedVoiceLibrary::RegisterRemoteTalker(const FBPUniqueNetId& UniqueNetId) { IOnlineVoicePtr VoiceInterface = Online::GetVoiceInterface(); if (!VoiceInterface.IsValid()) { UE_LOG(AdvancedVoiceLog, Warning, TEXT("Register Remote Talker couldn't get the voice interface!")); return false; } return VoiceInterface->RegisterRemoteTalker(*UniqueNetId.GetUniqueNetId()); }
void FOnlineSessionNull::RegisterVoice(const FUniqueNetId& PlayerId) { IOnlineVoicePtr VoiceInt = NullSubsystem->GetVoiceInterface(); if (VoiceInt.IsValid()) { if (!NullSubsystem->IsLocalPlayer(PlayerId)) { VoiceInt->RegisterRemoteTalker(PlayerId); } else { // This is a local player. In case their PlayerState came last during replication, reprocess muting VoiceInt->ProcessMuteChangeNotification(); } } }