# Set Sound Listener Gender
Grammar — Set the listener gender for sound soundLink to gender
Flags —Native
|Action
The listener gender will be used to look for alternate sound data associated with voice overs.
# Arguments
soundlink
— Sound Linkint
<preset::FontSize2> — Gender
Returns — void
native void SoundSetListenerGender(
soundlink link,
int gender,
);
# Related
Category: Sound / Sounds
- Play Sound On Unit —
void
— SoundPlayOnUnitForPlayer - Play Sound At Point —
void
— SoundPlayAtPointForPlayer - Play Sound —
void
— SoundPlayForPlayer - Last Played Sound —
sound
— SoundLastPlayed - Pause Sound —
void
— SoundPause - Stop Sound —
void
— SoundStop - Skip To Sound Offset —
void
— SoundSetOffset - Move Sound —
void
— SoundSetPosition - Wait For Sound —
void
— SoundWait - Set Sound Volume —
void
— SoundSetVolume - Stop All Trigger Sounds —
void
— SoundStopAllTriggerSounds - Stop All Model Sounds —
void
— SoundStopAllModelSounds - Set Sound Listener Gender —
void
— SoundSetListenerGender
# Examples
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:9756
// Automatic Variable Declarations
// Implementation
SoundSetListenerGender(lp_vOSound, libCOOC_gf_CC_CommanderGender(libCOOC_gf_ActiveCommanderForPlayer(lp_listenerPlayer)));
SoundPlayForPlayer(lp_vOSound, 1, lp_targetPlayers, 100.0, 0.0);
}