# Preload Sound Object
Grammar — Preload id|Sound Object queue|Immediately/For Next Map
Flags —Action
Preloads a sound data entry and its associated assets. The sound must be explicitly identified (it won’t work if you plug in a variable to that parameter). Preloading will force an asset or data entry to be loaded into memory before the map starts, rather than be loaded on demand as the map runs.
# Arguments
string
[ gamelink::Sound ] — Soundbool
[ preset::PreloadQueue ] — Queue
Returns — void
void libNtve_gf_PreloadSoundObject(
string lp_id,
bool lp_queue,
);
# Related
Category: Game / Preloading
- [F] —
void
— Preload Asset — ( PreloadAsset ) - [F] —
void
— Preload Image — ( PreloadImage ) - [F] —
void
— Preload Layout — ( PreloadLayout ) - [F] —
void
— Preload Model — ( PreloadModel ) - [F] —
void
— Preload Model Animation — ( libNtve_gf_PreloadModelAnimation ) - [F] —
void
— Preload Model Object — ( libNtve_gf_PreloadModelObject ) - [F] —
void
— Preload Movie — ( PreloadMovie ) - [F] —
void
— Preload Object — ( PreloadObject ) - [F] —
void
— Preload Scene — ( PreloadScene ) - [F] —
void
— Preload Script — ( PreloadScript ) - [F] —
void
— Preload Sound — ( PreloadSound ) - [F] —
void
— Preload Sound Object — ( libNtve_gf_PreloadSoundObject ) - [F] —
void
— Preload Soundtrack — ( libNtve_gf_PreloadSoundtrack ) - [F] —
void
— Preload Unit — ( libNtve_gf_PreloadUnit )
# Examples
# campaigns/liberty.sc2campaign
// L12308
libNtve_gf_PreloadSoundObject(SoundLinkId(gv_sceneMESound[(lp_sceneID)][lv_index]), false)
// L32251
libNtve_gf_PreloadSoundObject("Tychus05Briefing_GreenReticle1", false)
// L32252
libNtve_gf_PreloadSoundObject("Tychus05Briefing_GreenReticle2", false)
// L37559
libNtve_gf_PreloadSoundObject("TVTRaynor01Raynor00005", false)
// L37682
libNtve_gf_PreloadSoundObject("TVTRaynor02Raynor00003", false)
// L37683
libNtve_gf_PreloadSoundObject("TVTRaynor02Tychus00002", false)
// L38173
libNtve_gf_PreloadSoundObject("TVTHanson03BRaynor00014", false)
// L905
libNtve_gf_PreloadSoundObject("Swann_PlaceTurretVO", false)
// L906
libNtve_gf_PreloadSoundObject("Raynor_SnipeVO", false)
// L907
libNtve_gf_PreloadSoundObject("Tychus_TossGrenadeVO", false)
// L12308
libNtve_gf_PreloadSoundObject(SoundLinkId(gv_sceneMESound[(lp_sceneID)][lv_index]), false)
// L32251
libNtve_gf_PreloadSoundObject("Tychus05Briefing_GreenReticle1", false)
// L32252
libNtve_gf_PreloadSoundObject("Tychus05Briefing_GreenReticle2", false)
// L37559
libNtve_gf_PreloadSoundObject("TVTRaynor01Raynor00005", false)
// L37682
libNtve_gf_PreloadSoundObject("TVTRaynor02Raynor00003", false)
// L37683
libNtve_gf_PreloadSoundObject("TVTRaynor02Tychus00002", false)
// L38173
libNtve_gf_PreloadSoundObject("TVTHanson03BRaynor00014", false)
// L905
libNtve_gf_PreloadSoundObject("Swann_PlaceTurretVO", false)
// L906
libNtve_gf_PreloadSoundObject("Raynor_SnipeVO", false)
// L907
libNtve_gf_PreloadSoundObject("Tychus_TossGrenadeVO", false)
# campaigns/swarmstory.sc2campaign
// L13302
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_Start", false)
// L13303
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_BreathLoop", false)
// L13304
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_HeartBeatLoop", false)
# campaigns/voidstory.sc2campaign
// L6642
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_Start", false)
// L6643
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_BreathLoop", false)
// L6644
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_HeartBeatLoop", false)
# mods/missionpacks/novacampaign.sc2mod
// L2313
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_Start", false)
// L2314
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_BreathLoop", false)
// L2315
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_HeartBeatLoop", false)
# mods/starcoop/starcoop.sc2mod
// L4447
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_Start", false)
// L4448
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_BreathLoop", false)
// L4449
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_HeartBeatLoop", false)
# mods/voidprologue.sc2mod
// L6411
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_Start", false)
// L6412
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_BreathLoop", false)
// L6413
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_HeartBeatLoop", false)