public class PitCountDown extends SIMPluginCallback
pit-count-down-device = A Sound Device pit-count-down-volume = 100.0 pit-count-down-start = 5 pit-count-down-stop = 0 pit-count-down-play10 = Y pit-count-down-replay = N pit-count-down-play0 = Y pit-count-down-enabled = N pit-count-down-pit-position-enabled = Y pit-count-down-pattern = com/SIMRacingApps/SIMPluginCallbacks/Sounds/Clips/n%d.wav #some know patterns to spotter packs. Your version may vary C:\\Program Files (x86)\\iRacing\\sound\\spcc\\JJ Spotter Pack v6.51\\n%d.wav C:\\Program Files (x86)\\iRacing\\sound\\spcc\\Dale Jr Spotter Pack v2.4\\n%d_A1.wav Since 1.9: pit-count-down-too-far-left = com/SIMRacingApps/SIMPluginCallbacks/Sounds/Clips/TooFarLeft.wav pit-count-down-too-far-right = com/SIMRacingApps/SIMPluginCallbacks/Sounds/Clips/TooFarRight.wav pit-count-down-too-far-back = com/SIMRacingApps/SIMPluginCallbacks/Sounds/Clips/TooFarBack.wav pit-count-down-too-far-forward = com/SIMRacingApps/SIMPluginCallbacks/Sounds/Clips/TooFarForward.wav pit-count-down-straighten-up = com/SIMRacingApps/SIMPluginCallbacks/Sounds/Clips/StraightenUp.wav pit-count-down-too-much-damage = com/SIMRacingApps/SIMPluginCallbacks/Sounds/Clips/TooMuchDamage.wav pit-count-down-stop-right-there= com/SIMRacingApps/SIMPluginCallbacks/Sounds/Clips/StopRightThere.wav #Also these global settings will be used if the specific settings above are not set. sound-device = A Sound Device Name sound-volume = 100.0Setting the volume zero(0) will disable the sounds. The volume is a percentage from 0.0 to 1.0 or 1.1 to 100.0
Constructor and Description |
---|
PitCountDown(SIMPlugin SIMPlugin)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Called when the SIMPlugin is destroyed.
|
Data |
getVolume()
Gets the volume as a percentage.
|
boolean |
ProcessData(SIMPlugin SIMPlugin,
java.util.Map<java.lang.String,Data> data)
ProcessData is called from within the dedicated thread for this plug-in
every time there is data available in the queue it pops it off the queue and passes it to this method.
|
Data |
setVolume(double percentage)
Sets the volume as a percentage.
|
Data |
setVolume(java.lang.String percentage) |
DataReady, Waiting
public PitCountDown(SIMPlugin SIMPlugin) throws SIMPlugin.SIMPluginException
SIMPlugin
- An instance of the current SIM.SIMPlugin.SIMPluginException
- If there's a problem constructing your plug-in.public void destroy()
destroy
in class SIMPluginCallback
public Data getVolume()
Data
container.public Data setVolume(double percentage)
PATH = /SIMPluginCallback/Sounds/PitCountDown/setVolume/(PERCENTAGE)
percentage
- The new volume percentage, between 0.0 and 100.0.Data
container.public Data setVolume(java.lang.String percentage)
public boolean ProcessData(SIMPlugin SIMPlugin, java.util.Map<java.lang.String,Data> data)
SIMPluginCallback
//When calling the SIMPlugin from this method, you must synchronize on it first. It is not thread safe. Data d; synchronized (SIMPlugin) { //do not spend much time in here, we are blocking the main thread //Get the data and get out of the synchronized block d = SIMPlugin.getData("/Session/IsGreenFlag"); d = SIMPlugin.getSession().getIsGreenFlag(); } //do something with the data
ProcessData
in class SIMPluginCallback
SIMPlugin
- A reference to the SIMPlugin instance.data
- The Data objects added to the queue.