Atavism Version 2018.1AGIS API

atavism.server.voice
Class VoiceConnection

java.lang.Object
  extended by atavism.server.voice.VoiceConnection

public class VoiceConnection
extends java.lang.Object

This class holds voice-specific information about the connection, such as the oid of the speaker, the speaking state, etc.


Field Summary
 SecureToken authToken
          The authentication token for this connection.
 ClientConnection con
          The networking connection to the client with the given oid.
 VoiceGroup group
          The VoiceGroup instance to which this player belongs.
 GroupMember groupMember
          The GroupMember of the player with which this connection is associated.
 OID groupOid
          The oid of the group to which this player belongs.
 boolean listenToYourself
          True if the speaker is allowed to listen to himself.
 byte micVoiceNumber
          The device number of the microphone that this connection will use when it acts as a speaker.
 OID playerOid
          The oid of the player with which this connection is associated.
 java.io.BufferedOutputStream recordSpeexStream
          The output stream being used to write speex frames to disk.
 short seqNum
          The most recent sequence number received in a message from this voice connection.
 
Constructor Summary
VoiceConnection(ClientConnection con)
          Constructor.
 
Method Summary
 java.lang.String toString()
          A descriptive string for the VoiceConnection object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

con

public ClientConnection con
The networking connection to the client with the given oid.


playerOid

public OID playerOid
The oid of the player with which this connection is associated.


groupMember

public GroupMember groupMember
The GroupMember of the player with which this connection is associated. This is null until an auth packet is successfully processed.


groupOid

public OID groupOid
The oid of the group to which this player belongs.


group

public VoiceGroup group
The VoiceGroup instance to which this player belongs.


micVoiceNumber

public byte micVoiceNumber
The device number of the microphone that this connection will use when it acts as a speaker.


authToken

public SecureToken authToken
The authentication token for this connection. Note that it must be initialized to null, because that's how the VoicePlugin can tell that we have never received an auth packet for this connection.


seqNum

public short seqNum
The most recent sequence number received in a message from this voice connection.


listenToYourself

public boolean listenToYourself
True if the speaker is allowed to listen to himself. Only useful for testing and debugging.


recordSpeexStream

public java.io.BufferedOutputStream recordSpeexStream
The output stream being used to write speex frames to disk. Only useful for testing and debugging.

Constructor Detail

VoiceConnection

public VoiceConnection(ClientConnection con)
Constructor.

Parameters:
con - The ClientCconnection object representing the network connection to the player associated with this VoiceConnection.
Method Detail

toString

public java.lang.String toString()
A descriptive string for the VoiceConnection object.

Overrides:
toString in class java.lang.Object


Copyright © 2018 Dragonsan Studios Sp. z o.o.