Photon Voice v2.53

Public Member Functions | Properties | List of all members
RemoteVoiceOptions Struct Reference

Event Actions and other options for a remote voice (incoming stream). More...

Public Member Functions

 RemoteVoiceOptions (ILogger logger, string logPrefix, VoiceInfo voiceInfo)
 
void SetOutput (Action< FrameOut< float >> output)
 Create default audio decoder and register a method to be called when a data frame is decoded. More...
 
void SetOutput (Action< FrameOut< short >> output)
 Create default audio decoder and register a method to be called when a data frame is decoded. More...
 

Properties

Action OnRemoteVoiceRemoveAction [get, set]
 Register a method to be called when the remote voice is removed. More...
 
IDecoder Decoder [get, set]
 Remote voice data decoder. Use to set decoder options or override it with user decoder. More...
 

Detailed Description

Event Actions and other options for a remote voice (incoming stream).

Member Function Documentation

◆ SetOutput() [1/2]

void SetOutput ( Action< FrameOut< float >>  output)

Create default audio decoder and register a method to be called when a data frame is decoded.

◆ SetOutput() [2/2]

void SetOutput ( Action< FrameOut< short >>  output)

Create default audio decoder and register a method to be called when a data frame is decoded.

Property Documentation

◆ Decoder

IDecoder Decoder
getset

Remote voice data decoder. Use to set decoder options or override it with user decoder.

◆ OnRemoteVoiceRemoveAction

Action OnRemoteVoiceRemoveAction
getset

Register a method to be called when the remote voice is removed.