Photon Voice v2.58

Public Member Functions | Public Attributes | Protected Attributes | Properties | List of all members
VoiceNetworkObject Class Reference

Inherits NetworkBehaviour.

Public Member Functions

override void Spawned ()
 
override void Despawned (NetworkRunner runner, bool hasState)
 

Public Attributes

VoiceLogger VoiceLogger => voiceComponentImpl.VoiceLogger
 
bool IsSpeaking => this.SpeakerInUse != null && this.SpeakerInUse.IsPlaying
 If true, this VoiceNetworkObject has a Speaker that is currently playing received audio frames from remote audio source More...
 
bool IsRecording => this.RecorderInUse != null && this.RecorderInUse.IsCurrentlyTransmitting
 If true, this VoiceNetworkObject has a Recorder that is currently transmitting audio stream from local audio source More...
 
bool IsLocal => Runner.Topology == SimulationConfig.Topologies.Shared ? this.Object.HasStateAuthority : this.Object.HasInputAuthority
 

Protected Attributes

Voice.ILogger Logger => voiceComponentImpl.Logger
 

Properties

Recorder RecorderInUse [get]
 The Recorder component currently used by this VoiceNetworkObject More...
 
Speaker SpeakerInUse [get]
 The Speaker component currently used by this VoiceNetworkObject More...
 

Member Data Documentation

◆ IsRecording

bool IsRecording => this.RecorderInUse != null && this.RecorderInUse.IsCurrentlyTransmitting

If true, this VoiceNetworkObject has a Recorder that is currently transmitting audio stream from local audio source

◆ IsSpeaking

bool IsSpeaking => this.SpeakerInUse != null && this.SpeakerInUse.IsPlaying

If true, this VoiceNetworkObject has a Speaker that is currently playing received audio frames from remote audio source

Property Documentation

◆ RecorderInUse

Recorder RecorderInUse
get

The Recorder component currently used by this VoiceNetworkObject

◆ SpeakerInUse

Speaker SpeakerInUse
get

The Speaker component currently used by this VoiceNetworkObject