Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils
Inheritance Hierarchy
- IOnlineVoice
- FOnlineVoiceImpl
References
| Module | OnlineSubsystemUtils |
| Header | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Public/VoiceInterfaceImpl.h |
| Include | #include "VoiceInterfaceImpl.h" |
Syntax
class FOnlineVoiceImpl : public IOnlineVoice
Remarks
The generic implementation of the voice interface
Variables
| Type | Name | Description | |
|---|---|---|---|
| IOnlineIdentity * | IdentityInt | Reference to the profile interface | |
| TArray< FLocalTalker > | LocalTalkers | State of all possible local talkers | |
| int32 | MaxLocalTalkers | Maximum permitted local talkers | |
| int32 | MaxRemoteTalkers | Maximum permitted remote talkers | |
| TArray< FUniqueNetIdWrapper > | MuteList | All remote players locally muted (super set of SystemMuteList) | |
| IOnlineSubsystem * | OnlineSubsystem | Reference to the main online subsystem | |
| TArray< FRemoteTalker > | RemoteTalkers | State of all possible remote talkers | |
| IOnlineSession * | SessionInt | Reference to the sessions interface | |
| TArray< FUniqueNetIdWrapper > | SystemMuteList | Remote players locally muted explicitly | |
| FVoiceDataImpl | VoiceData | Buffered voice data I/O | |
| IVoiceEnginePtr | VoiceEngine | Reference to the voice engine for acquiring voice data | |
| float | VoiceNotificationDelta | Time to wait for new data before triggering "not talking" |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FOnlineVoiceImpl
(
IOnlineSubsystem* InOnlineSubsystem |
Constructor |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor to force proper child cleanup |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FRemoteTalker * | FindRemoteTalker
(
const FUniqueNetId& UniqueId |
Finds a remote talker in the cached list | |
| bool | IsLocallyMuted
(
const FUniqueNetId& UniqueId |
Is a given id presently muted (either by system mute or game server) | |
| bool | IsSystemWideMuted
(
const FUniqueNetId& UniqueId |
Does a given id exist in the system wide mute list | |
| void | Reads any data that is currently queued | ||
| void | Submits network packets to audio system for playback | ||
| void | ProcessTalkingDelegates
(
float DeltaTime |
Processes any talking delegates that need to be fired off | |
| void | UpdateMuteListForLocalTalker
(
int32 TalkerIndex |
Figures out which remote talkers need to be muted for a given local talker |
Overridden from IOnlineVoice
| Type | Name | Description | |
|---|---|---|---|
| void | Clears all voice packets currently queued for send | ||
| IVoiceEnginePtr | |||
| void | When called, disconnects all additional audio endpoints we patched to using PatchRemoteTalkerOutputToEndpoint(). | ||
| float | GetAmplitudeOfRemoteTalker
(
const FUniqueNetId& PlayerId |
This returns the current amplitude of a given player's incoming audio. | |
| TSharedPtr< class FVoicePacket > | GetLocalPacket
(
uint32 LocalUserNum |
Get the local voice packet intended for send | |
| Audio::FPatchOutputStrongPtr | This can be used to get arbitrarily tap outgoing microphone audio from local players to use elsewhere in your application. | ||
| int32 | |||
| Audio::FPatchOutputStrongPtr | This can be used to get arbitrarily tap incoming VOIP audio from remote players to use elsewhere in your application. | ||
| FString | Get information about the voice state for display | ||
| bool | Init () |
IOnlineVoice. | |
| bool | IsHeadsetPresent
(
uint32 LocalUserNum |
Checks whether a local user index has a headset present or not | |
| bool | IsLocalPlayerTalking
(
uint32 LocalUserNum |
Determines whether a local user index is currently talking or not | |
| bool | IsMuted
(
uint32 LocalUserNum, |
Checks that a unique player id is on the specified user's mute list | |
| bool | IsRemotePlayerTalking
(
const FUniqueNetId& UniqueId |
Determines whether a remote talker is currently talking or not | |
| bool | MuteRemoteTalker
(
uint8 LocalUserNum, |
Mutes a remote talker for the specified local player. | |
| bool | PatchLocalTalkerOutputToEndpoint
(
const FString& InDeviceName |
This can be used to patch outgoing audio to a different audio device. | |
| bool | PatchRemoteTalkerOutputToEndpoint
(
const FString& InDeviceName, |
This can be used to patch incoming audio to a different audio device. | |
| void | Re-evaluates the muting list for all local talkers | ||
| bool | RegisterLocalTalker
(
uint32 LocalUserNum |
Registers the user index as a local talker (interested in voice data) | |
| void | Registers all signed in local talkers | ||
| bool | RegisterRemoteTalker
(
const FUniqueNetId& UniqueId |
Registers the unique player id as a remote talker (submitted voice data only) | |
| void | Iterates the current remote talker list unregistering them with the voice engine and our internal state | ||
| TSharedPtr< class FVoicePacket > | SerializeRemotePacket
(
FArchive& Ar |
Convert generic network packet data back into voice data | |
| void | Shutdown () |
Cleanup voice interface | |
| void | StartNetworkedVoice
(
uint8 LocalUserNum |
IOnlineVoice. | |
| void | StopNetworkedVoice
(
uint8 LocalUserNum |
Tells the voice layer to stop processing networked voice support for the specified player. | |
| void | Tick
(
float DeltaTime |
Allows for platform specific servicing of devices, etc. | |
| bool | UnmuteRemoteTalker
(
uint8 LocalUserNum, |
Allows a remote talker to talk to the specified local player. | |
| bool | UnregisterLocalTalker
(
uint32 LocalUserNum |
Unregisters the user index as a local talker (not interested in voice data) | |
| void | Unregisters all signed in local talkers | ||
| bool | UnregisterRemoteTalker
(
const FUniqueNetId& UniqueId |
Unregisters the unique player id as a remote talker |