createSource
Definition
-- @/=[C]:-1
function createSource(...)
Callers
@/lua/ge/extensions/gameplay/drift/sounds.lua
local function setupContinuousDriftSound()
continuousDriftSoundId = continuousDriftSoundId or Engine.Audio.createSource('AudioGui', soundAssets.continuousDrift)
end
@/lua/ge/extensions/ui/credits.lua
soundParams = SFXParameterGroup("CreditsSoundParams")
creditsSoundId = Engine.Audio.createSource('AudioGui', 'event:>Music>credits')
local snd = scenetree.findObjectById(creditsSoundId)
@/lua/ge/extensions/career/modules/fuel.lua
local function setupSounds()
gasSoundId = gasSoundId or Engine.Audio.createSource('AudioGui', 'event:>UI>Career>Fueling_Petrol')
electricSoundId = electricSoundId or Engine.Audio.createSource('AudioGui', 'event:>UI>Career>Fueling_Electric')
gasSoundId = gasSoundId or Engine.Audio.createSource('AudioGui', 'event:>UI>Career>Fueling_Petrol')
electricSoundId = electricSoundId or Engine.Audio.createSource('AudioGui', 'event:>UI>Career>Fueling_Electric')
end
@/lua/ge/extensions/freeroam/bigMapMode.lua
setActive(false)
airSoundId = Engine.Audio.createSource('AudioGui', 'event:>UI>Bigmap>Ambience')
end
@/lua/ge/extensions/career/modules/delivery/progress.lua
local function activateSound(soundLabel, active)
soundObjectIds["money"] = soundObjectIds["money"] or Engine.Audio.createSource('AudioGui', soundNames["money"])
soundObjectIds["progressBar"] = soundObjectIds["progressBar"] or Engine.Audio.createSource('AudioGui', soundNames["progressBar"])
soundObjectIds["money"] = soundObjectIds["money"] or Engine.Audio.createSource('AudioGui', soundNames["money"])
soundObjectIds["progressBar"] = soundObjectIds["progressBar"] or Engine.Audio.createSource('AudioGui', soundNames["progressBar"])
if active then
@/lua/ge/extensions/gameplay/missions/missionScreen.lua
local function setupSounds()
--soundId = soundId or Engine.Audio.createSource('AudioGui', 'event:>UI>Career>EndScreen_Snapshot')
end
local function activateSound(soundLabel, active, pitch)
soundObjectIds["money"] = soundObjectIds["money"] or Engine.Audio.createSource('AudioGui', soundNames["money"])
soundObjectIds["xp"] = soundObjectIds["xp"] or Engine.Audio.createSource('AudioGui', soundNames["xp"])
soundObjectIds["money"] = soundObjectIds["money"] or Engine.Audio.createSource('AudioGui', soundNames["money"])
soundObjectIds["xp"] = soundObjectIds["xp"] or Engine.Audio.createSource('AudioGui', soundNames["xp"])
soundObjectIds["vouchers"] = soundObjectIds["vouchers"] or Engine.Audio.createSource('AudioGui', soundNames["vouchers"])
soundObjectIds["xp"] = soundObjectIds["xp"] or Engine.Audio.createSource('AudioGui', soundNames["xp"])
soundObjectIds["vouchers"] = soundObjectIds["vouchers"] or Engine.Audio.createSource('AudioGui', soundNames["vouchers"])
pitch = pitch or 1