Package zombie.core.raknet
Class VoiceManager
java.lang.Object
zombie.core.raknet.VoiceManager
public class VoiceManager
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static VoiceManager
instance
static int
modeMute
static int
modePPT
static int
modeVAD
static long
tem_t
static int
VADModeAggressive
static int
VADModeLowBitrate
static int
VADModeQuality
static int
VADModeVeryAggressive
-
Constructor Summary
Constructors Constructor Description VoiceManager()
-
Method Summary
Modifier and Type Method Description void
DeinitVMClient()
static void
GetDataCallback100Hz(short[] data)
static void
GetDataCallbackRnd(int javaarg, short[] data)
static VoiceManager
getInstance()
boolean
getMicVolumeError()
int
getMicVolumeIndicator()
boolean
getServerVOIPEnable()
void
InitVMClient()
void
loadConfig()
void
LuaRegister(Platform platform, KahluaTable environment)
static boolean
playerGetMute(java.lang.String username)
static void
playerSetMute(java.lang.String username)
void
setMode(int mode)
void
setVADMode(int mode)
void
setVolumeMic(int volume)
void
setVolumePlayers(int volume)
void
UpdateRecordDevice()
void
VMServerBan(int player_id, boolean is_ban)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
tem_t
public static long tem_t -
modePPT
public static final int modePPT- See Also:
- Constant Field Values
-
modeVAD
public static final int modeVAD- See Also:
- Constant Field Values
-
modeMute
public static final int modeMute- See Also:
- Constant Field Values
-
VADModeQuality
public static final int VADModeQuality- See Also:
- Constant Field Values
-
VADModeLowBitrate
public static final int VADModeLowBitrate- See Also:
- Constant Field Values
-
VADModeAggressive
public static final int VADModeAggressive- See Also:
- Constant Field Values
-
VADModeVeryAggressive
public static final int VADModeVeryAggressive- See Also:
- Constant Field Values
-
-
Constructor Details
-
VoiceManager
public VoiceManager()
-
-
Method Details
-
getInstance
-
GetDataCallbackRnd
public static void GetDataCallbackRnd(int javaarg, short[] data) -
GetDataCallback100Hz
public static void GetDataCallback100Hz(short[] data) -
setMode
public void setMode(int mode) -
setVADMode
public void setVADMode(int mode) -
setVolumePlayers
public void setVolumePlayers(int volume) -
setVolumeMic
public void setVolumeMic(int volume) -
playerSetMute
public static void playerSetMute(java.lang.String username) -
playerGetMute
public static boolean playerGetMute(java.lang.String username) -
LuaRegister
-
InitVMClient
public void InitVMClient() -
loadConfig
public void loadConfig() -
UpdateRecordDevice
public void UpdateRecordDevice() -
DeinitVMClient
public void DeinitVMClient() -
getMicVolumeIndicator
public int getMicVolumeIndicator() -
getMicVolumeError
public boolean getMicVolumeError() -
getServerVOIPEnable
public boolean getServerVOIPEnable() -
VMServerBan
public void VMServerBan(int player_id, boolean is_ban)
-