# Set Sound Listener Gender

Grammar — Set the listener gender for sound soundLink to gender
FlagsNative | Action

The listener gender will be used to look for alternate sound data associated with voice overs.

# Arguments

  • soundlink — Sound Link
  • int<preset::FontSize2> — Gender

Returns — void

native void SoundSetListenerGender(
	soundlink link,
	int gender,
);

Category: Sound / Sounds

# Examples

mods/starcoop/starcoop.sc2modbase.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);
}