public class TeamSpeak
extends java.lang.Object
The class can be used stand alone, but if you pass in a SIMPlugin to a SIM, it will update your alias by prepending your car number to it. Another feature is you can get notified who is talking and if they are whispering. Many other things are possible, so stay tuned and ask for new features.
See an example test application at the bottom of the source code.
Constructor and Description |
---|
TeamSpeak(SIMPlugin SIMPlugin)
Constructor to initiate a connection to the TeamSpeak Client when running on same machine as the SIMRacingApps server.
|
TeamSpeak(SIMPlugin SIMPlugin,
java.lang.String host)
Constructor to initiate a connection to the TeamSpeak Client when not running on same machine as the SIMRacingApps server.
|
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Called to disconnect from the TeamSpeak Client and stop the thread.
|
Data |
getTalker()
Returns the name of the person that is currently talking in TeamSpeak.
|
Data |
getWhispering()
Returns the word "Whispering" if the talker is whispering, blank if not.
|
static void |
main(java.lang.String[] args) |
void |
startListener() |
void |
update()
This method is to be called by the SIM any time there's new data.
|
public TeamSpeak(SIMPlugin SIMPlugin)
SIMPlugin
- The current SIM plug-in or null if not using with a SIM.public TeamSpeak(SIMPlugin SIMPlugin, java.lang.String host)
SIMPlugin
- The current SIM plug-in or null if not using with a SIM.host
- The host or IP address of where the client is running.public void disconnect()
public void update()
public Data getTalker()
Data
container.public Data getWhispering()
Data
container.public void startListener()
public static void main(java.lang.String[] args)