- Source:
Classes
Methods
-
<static> pauseAudioByIndex(phsim, i)
-
Pause audio by index. Alternative function: PhSim#pauseAudioByIndex
Parameters:
Name Type Description phsim
PhSim PhSim instance.
i
Number - Source:
-
<static> playAudioByIndex(phsim, i)
-
Play audio by index. Alternative function: PhSim#playAudioByIndex
Parameters:
Name Type Description phsim
PhSim PhSim instance.
i
Number Index in audio array.
- Source:
Returns:
- Promise that is fulfilled when the audio is played.
- Type
- Promise
-
<static> setAudioMuteByIndex(i, phsim)
-
Mute the
i
th element of the audio array.Alternative function: PhSim#setAudioMuteByIndex
Parameters:
Name Type Description i
Number phsim
PhSim PhSim instance
- Source:
-
<static> setAudioVolByIndex(phsim, i, v)
-
Set volume by index Alternative function: PhSim#setAudioVolByIndex
Parameters:
Name Type Description phsim
PhSim PhSim instance
i
Number Index
v
Number Volume
- Source:
-
<static> toggleAudioByIndex(phsim, i)
-
Parameters:
Name Type Description phsim
PhSIm PhSim instance
i
Number Index number
- Source:
Returns:
- True if paused, false otherwise.
- Type
- Boolean