C# Class OpenMetaverse.Utilities.VoiceManager

Exibir arquivo Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Properties

Property Type Description
BlockingTimeout int
Client OpenMetaverse.GridClient
Enabled bool

Protected Properties

Property Type Description
Events AutoResetEvent>.Dictionary
_CaptureDevices List
_ChannelMap string>.Dictionary
_CommandCookie int
_DaemonPipe OpenMetaverse.Voice.TCPPipe
_RenderDevices List
_Status VoiceStatus
_TuningSoundFile string

Public Methods

Method Description
CaptureDevices ( ) : List
CreateConnector ( string _accountManagementServer, int &status ) : string
CurrentCaptureDevices ( ) : List
CurrentRenderDevices ( ) : List
DaemonJoin ( ) : bool
DaemonJoin ( string address, int port ) : bool
GetChannelMap ( ) : string>.Dictionary
InitiateShutdown ( string connectorHandle, int &status ) : string
IsDaemonRunning ( ) : bool
Login ( string accountName, string password, string connectorHandle, int &status ) : string
Logout ( string accountHandle, int &status ) : void
RenderDevices ( ) : List
RequestCaptureDevices ( ) : int
RequestCreateConnector ( string _voiceServer, string _proxyServer, bool _logEnabled, string _logNamePrefix, string _logNameSuffix, int _logLevel ) : int
RequestInitiateShutdown ( string connectorHandle ) : int
RequestLogin ( string accountName, string password, string accountURI, string connectorHandle, int _participantPropertyFrequency ) : int
RequestLogout ( string accountHandle ) : int
RequestMuteLocalMic ( bool enabled ) : int
RequestMuteLocalSpeaker ( bool enabled ) : int
RequestParcelVoiceInfo ( ) : bool
RequestProvisionAccount ( ) : bool
RequestRenderAudioStart ( string fileName, bool loop ) : int

Does not appear to be working

RequestRenderAudioStop ( ) : int
RequestRenderDevices ( ) : int
RequestSessionConnector ( string SessionHandle ) : int
RequestSessionCreate ( string AccountHandle, string URI, string Name, string Password, bool JoinAudio, bool JoinText, string PasswordHashAlgorithm, int type ) : int
RequestSessionTerminate ( string SessionHandle ) : int
RequestSet3DPosition ( string SessionHandle, VoicePosition SpeakerPosition, VoicePosition ListenerPosition ) : int

Set the combined speaking and listening position in 3D space. There appears to be no response to this request.

RequestSetCaptureVolume ( int volume ) : int
RequestSetLocalMicVolume ( int volume ) : int
RequestSetLocalSpeakerVolume ( int volume ) : int
RequestSetRenderDevice ( string deviceName ) : int
RequestSetSpeakerVolume ( int volume ) : int
RequestStartTuningMode ( int duration ) : int
RequestStopTuningMode ( ) : int
SIPURIFromVoiceAccount ( string account, string voiceServer ) : string
SessionCreate ( string AccountHandle, string URI, string Name, string Password, bool JoinAudio, bool JoinText, string PasswordHashAlgorithm, int &status ) : string
StartDaemon ( ) : bool
StartDaemon ( string _exePath, string _args ) : bool
StopDaemon ( ) : void
UUIDFromVoiceAccount ( string accountName ) : UUID
VoiceAccountFromUUID ( UUID id ) : string
VoiceManager ( GridClient client ) : System
VoiceManager_OnSessionCreated ( int cookie, int statusCode, string statusString, string sessionHandle ) : void

Protected Methods

Method Description
RegisterCallbacks ( ) : void

Private Methods

Method Description
GetAttributeFromID ( XmlNode _node, string _id ) : string
MessagePerse ( string _message ) : void
ParcelVoiceInfoResponse ( OpenMetaverse.Capabilities.CapsClient client, OSD response, Exception error ) : void
ParseResultNode ( XmlNode _node ) : void
ProcessEvent ( ) : void
ProvisionCapsResponse ( OpenMetaverse.Capabilities.CapsClient client, OSD response, Exception error ) : void
RequestVoiceInternal ( string me, OpenMetaverse.Capabilities.CapsClient callback, string capsName ) : bool
RequiredVoiceVersionEventHandler ( string message, OSD osd, Simulator simulator ) : void
VoiceManager_OnCaptureDevices ( int cookie, int statusCode, string statusString, string currentDevice ) : void
VoiceManager_OnConnectorCreated ( int cookie, int statusCode, string versionID, string statusString, string connectorHandle ) : void
VoiceManager_OnLogin ( int cookie, int statusCode, string statusString, string accountHandle ) : void
VoiceManager_OnRenderDevices ( int cookie, int statusCode, string statusString, string currentDevice ) : void
_DaemonPipe_OnDisconnected ( SocketException se ) : void
_DaemonPipe_OnReceiveLine ( string line ) : void
process_Exited ( object sender, EventArgs e ) : void

Method Details

CaptureDevices() public method

public CaptureDevices ( ) : List
return List

CreateConnector() public method

public CreateConnector ( string _accountManagementServer, int &status ) : string
_accountManagementServer string
status int
return string

CurrentCaptureDevices() public method

public CurrentCaptureDevices ( ) : List
return List

CurrentRenderDevices() public method

public CurrentRenderDevices ( ) : List
return List

DaemonJoin() public method

public DaemonJoin ( ) : bool
return bool

DaemonJoin() public method

public DaemonJoin ( string address, int port ) : bool
address string
port int
return bool

GetChannelMap() public method

public GetChannelMap ( ) : string>.Dictionary
return string>.Dictionary

InitiateShutdown() public method

public InitiateShutdown ( string connectorHandle, int &status ) : string
connectorHandle string
status int
return string

IsDaemonRunning() public method

public IsDaemonRunning ( ) : bool
return bool

Login() public method

public Login ( string accountName, string password, string connectorHandle, int &status ) : string
accountName string
password string
connectorHandle string
status int
return string

Logout() public method

public Logout ( string accountHandle, int &status ) : void
accountHandle string
status int
return void

RegisterCallbacks() protected method

protected RegisterCallbacks ( ) : void
return void

RenderDevices() public method

public RenderDevices ( ) : List
return List

RequestCaptureDevices() public method

public RequestCaptureDevices ( ) : int
return int

RequestCreateConnector() public method

public RequestCreateConnector ( string _voiceServer, string _proxyServer, bool _logEnabled, string _logNamePrefix, string _logNameSuffix, int _logLevel ) : int
_voiceServer string
_proxyServer string
_logEnabled bool
_logNamePrefix string
_logNameSuffix string
_logLevel int
return int

RequestInitiateShutdown() public method

public RequestInitiateShutdown ( string connectorHandle ) : int
connectorHandle string
return int

RequestLogin() public method

public RequestLogin ( string accountName, string password, string accountURI, string connectorHandle, int _participantPropertyFrequency ) : int
accountName string
password string
accountURI string
connectorHandle string
_participantPropertyFrequency int
return int

RequestLogout() public method

public RequestLogout ( string accountHandle ) : int
accountHandle string
return int

RequestMuteLocalMic() public method

public RequestMuteLocalMic ( bool enabled ) : int
enabled bool
return int

RequestMuteLocalSpeaker() public method

public RequestMuteLocalSpeaker ( bool enabled ) : int
enabled bool
return int

RequestParcelVoiceInfo() public method

public RequestParcelVoiceInfo ( ) : bool
return bool

RequestProvisionAccount() public method

public RequestProvisionAccount ( ) : bool
return bool

RequestRenderAudioStart() public method

Does not appear to be working
public RequestRenderAudioStart ( string fileName, bool loop ) : int
fileName string
loop bool
return int

RequestRenderAudioStop() public method

public RequestRenderAudioStop ( ) : int
return int

RequestRenderDevices() public method

public RequestRenderDevices ( ) : int
return int

RequestSessionConnector() public method

public RequestSessionConnector ( string SessionHandle ) : int
SessionHandle string
return int

RequestSessionCreate() public method

public RequestSessionCreate ( string AccountHandle, string URI, string Name, string Password, bool JoinAudio, bool JoinText, string PasswordHashAlgorithm, int type ) : int
AccountHandle string
URI string
Name string
Password string
JoinAudio bool
JoinText bool
PasswordHashAlgorithm string
type int
return int

RequestSessionTerminate() public method

public RequestSessionTerminate ( string SessionHandle ) : int
SessionHandle string
return int

RequestSet3DPosition() public method

Set the combined speaking and listening position in 3D space. There appears to be no response to this request.
public RequestSet3DPosition ( string SessionHandle, VoicePosition SpeakerPosition, VoicePosition ListenerPosition ) : int
SessionHandle string Handle returned from successful Session �create�Erequest or a SessionNewEvent
SpeakerPosition VoicePosition Speaking position
ListenerPosition VoicePosition Listening position
return int

RequestSetCaptureVolume() public method

public RequestSetCaptureVolume ( int volume ) : int
volume int
return int

RequestSetLocalMicVolume() public method

public RequestSetLocalMicVolume ( int volume ) : int
volume int
return int

RequestSetLocalSpeakerVolume() public method

public RequestSetLocalSpeakerVolume ( int volume ) : int
volume int
return int

RequestSetRenderDevice() public method

public RequestSetRenderDevice ( string deviceName ) : int
deviceName string
return int

RequestSetSpeakerVolume() public method

public RequestSetSpeakerVolume ( int volume ) : int
volume int
return int

RequestStartTuningMode() public method

public RequestStartTuningMode ( int duration ) : int
duration int
return int

RequestStopTuningMode() public method

public RequestStopTuningMode ( ) : int
return int

SIPURIFromVoiceAccount() public method

public SIPURIFromVoiceAccount ( string account, string voiceServer ) : string
account string
voiceServer string
return string

SessionCreate() public method

public SessionCreate ( string AccountHandle, string URI, string Name, string Password, bool JoinAudio, bool JoinText, string PasswordHashAlgorithm, int &status ) : string
AccountHandle string
URI string
Name string
Password string
JoinAudio bool
JoinText bool
PasswordHashAlgorithm string
status int
return string

StartDaemon() public method

public StartDaemon ( ) : bool
return bool

StartDaemon() public method

public StartDaemon ( string _exePath, string _args ) : bool
_exePath string
_args string
return bool

StopDaemon() public method

public StopDaemon ( ) : void
return void

UUIDFromVoiceAccount() public method

public UUIDFromVoiceAccount ( string accountName ) : UUID
accountName string
return UUID

VoiceAccountFromUUID() public method

public VoiceAccountFromUUID ( UUID id ) : string
id UUID
return string

VoiceManager() public method

public VoiceManager ( GridClient client ) : System
client OpenMetaverse.GridClient
return System

VoiceManager_OnSessionCreated() public method

public VoiceManager_OnSessionCreated ( int cookie, int statusCode, string statusString, string sessionHandle ) : void
cookie int
statusCode int
statusString string
sessionHandle string
return void

Property Details

BlockingTimeout public_oe property

Amount of time to wait for the voice daemon to respond. The value needs to stay relatively high because some of the calls require the voice daemon to make remote queries before replying
public int BlockingTimeout
return int

Client public_oe property

public GridClient,OpenMetaverse Client
return OpenMetaverse.GridClient

Enabled public_oe property

public bool Enabled
return bool

Events protected_oe property

protected Dictionary Events
return AutoResetEvent>.Dictionary

_CaptureDevices protected_oe property

protected List _CaptureDevices
return List

_ChannelMap protected_oe property

protected Dictionary _ChannelMap
return string>.Dictionary

_CommandCookie protected_oe property

protected int _CommandCookie
return int

_DaemonPipe protected_oe property

protected TCPPipe,OpenMetaverse.Voice _DaemonPipe
return OpenMetaverse.Voice.TCPPipe

_RenderDevices protected_oe property

protected List _RenderDevices
return List

_Status protected_oe property

protected VoiceStatus _Status
return VoiceStatus

_TuningSoundFile protected_oe property

protected string _TuningSoundFile
return string