Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem > API/Plugins/OnlineSubsystem/Interfaces
Inheritance Hierarchy
- IOnlineVoice
- FOnlineVoiceImpl
References
| Module | OnlineSubsystem |
| Header | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/VoiceInterface.h |
| Include | #include "Interfaces/VoiceInterface.h" |
Syntax
class IOnlineVoice
Remarks
This interface is an abstract mechanism for managing voice data. Each platform implements a specific version of this interface.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FOnPlayerTalkingStateChanged | OnPlayerTalkingStateChangedDelegates | Delegate called when a player is talking either remotely or locally Called once for each active talker each frame |
Constructors
| Type | Name | Description | |
|---|---|---|---|
IOnlineVoice () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor to force proper child cleanup |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FDelegateHandle | AddOnPlayerTalkingStateChangedDelegate_Handle
(
const FOnPlayerTalkingStateChangedDelegate& Delegate |
||
| void | |||
| void | ClearOnPlayerTalkingStateChangedDelegates
(
void* Object |
||
| 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 () |
Initialize the voice interface | |
| 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 () |
||
| void | StartNetworkedVoice
(
uint8 LocalUserNum |
Tells the voice layer that networked processing of the voice data is allowed for the specified player. | |
| 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. | |
| void | TriggerOnPlayerTalkingStateChangedDelegates
(
FUniqueNetIdRef Param1, |
||
| 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 |