# Sound Asset Index
Grammar — Sound asset index of soundLink
Flags —Native
|Function
Returns the sound asset index for a Sound Link. Sound Links are used to refer to specific sounds. Sound links are comprised of a sound ID (to identify the sound data entry) and an asset index (to identify the asset within that data entry).
# Arguments
soundlink
— Sound Link
Returns — int
native int SoundLinkAsset(soundlink soundId);
# Related
Category: Sound / Sound Properties
- Sound Asset Index —
int
— SoundLinkAsset - Sound ID —
string
<gamelink::Sound> — SoundLinkId - Sound Link —
soundlink
— SoundLink - Sound Subtitle Text —
text
— SoundSubtitleText - Sound Portrait Model —
string
<gamelink::Model> — SoundPortraitModel - Sound Duration —
fixed
— SoundLengthSync - Mark Sound For Duration Preload — macro
- Query Sound Duration —
void
— SoundLengthQuery - Wait For Sound Durations —
void
— SoundLengthQueryWait
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:1195
// Implementation
lv_sndGameLink = SoundLinkId(lp_soundLink);
lv_sndAssetID = SoundLinkAsset(lp_soundLink);
if ((lv_sndAssetID < 0)) {
lv_sndAssetID = 0;