cutSFX
Definition
-- @/=[C]:-1
function cutSFX(...)
Callers
@/lua/vehicle/powertrain/nitrousOxideInjection.lua
obj:setVolume(purgeSounds[k], purgeVolume)
obj:cutSFX(purgeSounds[k])
obj:playSFX(purgeSounds[k])
@/lua/vehicle/sounds.lua
obj:setVolume(sound, volume)
obj:cutSFX(sound)
obj:playSFX(sound)
@/lua/vehicle/powertrain/combustionEngine.lua
if device.engineMiscSounds.shutOffSoundEngine then
obj:cutSFX(device.engineMiscSounds.shutOffSoundEngine)
obj:playSFX(device.engineMiscSounds.shutOffSoundEngine)
if device.engineMiscSounds.shutOffSoundExhaust then
obj:cutSFX(device.engineMiscSounds.shutOffSoundExhaust)
obj:playSFX(device.engineMiscSounds.shutOffSoundExhaust)
obj:cutSFX(device.engineMiscSounds.starterSoundEngine)
obj:playSFX(device.engineMiscSounds.starterSoundEngine)
if device.engineMiscSounds.starterSoundExhaust then
obj:cutSFX(device.engineMiscSounds.starterSoundExhaust)
obj:playSFX(device.engineMiscSounds.starterSoundExhaust)
else
obj:cutSFX(device.engineMiscSounds.starterSoundEngine)
if device.engineMiscSounds.starterSoundExhaust then
if device.engineMiscSounds.starterSoundExhaust then
obj:cutSFX(device.engineMiscSounds.starterSoundExhaust)
end
@/lua/vehicle/controller/sound/reverseWarn.lua
obj:setVolume(beepLoop, beepVolume)
obj:cutSFX(beepLoop)
obj:playSFX(beepLoop)
@/lua/vehicle/wheels.lua
if wd.tirePunctureLoop then
obj:cutSFX(wd.tirePunctureLoop)
end
@/lua/vehicle/controller/pneumatics/actuators.lua
if not g.isPlayingIncrease then
obj:cutSFX(g.soundLoopIncrease)
obj:setVolume(g.soundLoopIncrease, g.volumeIncrease * volumeCoef)
if not g.isPlayingDecrease then
obj:cutSFX(g.soundLoopDecrease)
obj:setVolume(g.soundLoopDecrease, g.volumeDecrease * volumeCoef)
@/lua/vehicle/powertrain/turbocharger.lua
obj:setVolumePitchCT(bovSound, relativePressure * turboSizeCoef, 1, bovSoundVolumeCoef, 0)
obj:cutSFX(bovSound)
obj:playSFX(bovSound)
obj:setVolumePitchCT(flutterSound, relativePressure * turboSizeCoef, 1, flutterSoundVolumeCoef, 0)
obj:cutSFX(flutterSound)
obj:playSFX(flutterSound)
@/lua/vehicle/controller/pneumatics.lua
obj:setVolume(groupData.soundLoopUp, groupData.volumeUp)
obj:cutSFX(groupData.soundLoopUp)
obj:playSFX(groupData.soundLoopUp)
obj:setVolume(groupData.soundLoopDown, groupData.volumeDown)
obj:cutSFX(groupData.soundLoopDown)
obj:playSFX(groupData.soundLoopDown)
obj:setVolume(groupData.soundLoopUp, groupData.volumeUp)
obj:cutSFX(groupData.soundLoopUp)
obj:playSFX(groupData.soundLoopUp)
obj:setVolume(groupData.soundLoopDown, groupData.volumeDown)
obj:cutSFX(groupData.soundLoopDown)
obj:playSFX(groupData.soundLoopDown)
@/lua/vehicle/controller/hydraulicSuspension.lua
if not isPumpSoundPlaying then
obj:cutSFX(pumpSoundLoop)
obj:playSFX(pumpSoundLoop)