# Mute/Unmute Sound Channel

Grammarmute|Mute/Unmute channel channel for players
FlagsNative | Action

Mutes or unmutes a sound channel for the specified player group.

# Arguments

Returns — void

native void SoundChannelMute(
	playergroup players,
	int channel,
	bool mute,
);

Category: Sound / Sound Channels

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L10216
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L10217
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L10218
SoundChannelMute(PlayerGroupAll(), c_soundCategoryFlames, true)
// L10219
SoundChannelMute(PlayerGroupAll(), c_soundCategoryCombat, true)
// L10220
SoundChannelMute(PlayerGroupAll(), c_soundCategoryVoice, true)
// L10221
SoundChannelMute(PlayerGroupAll(), c_soundCategorySpell, true)
// L10222
SoundChannelMute(PlayerGroupAll(), c_soundCategorySPieces, true)
// L10223
SoundChannelMute(PlayerGroupAll(), c_soundCategorySEmitters, true)
// L10224
SoundChannelMute(PlayerGroupAll(), c_soundCategorySAmbient, true)
// L10225
SoundChannelMute(PlayerGroupAll(), c_soundCategoryReady, true)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L1499
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L1603
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)
// L3893
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAlert, lp_muteUnmute)
// L3894
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, lp_muteUnmute)
// L3895
SoundChannelMute(PlayerGroupAll(), c_soundCategoryBuild, lp_muteUnmute)
// L3896
SoundChannelMute(PlayerGroupAll(), c_soundCategoryCombat, lp_muteUnmute)
// L3897
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDeath, lp_muteUnmute)
// L3898
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDialogue, lp_muteUnmute)
// L3899
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, lp_muteUnmute)
// L3900
SoundChannelMute(PlayerGroupAll(), c_soundCategoryFlames, lp_muteUnmute)

# campaigns/void.sc2campaign

MapScript.galaxy

// L2474
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L3829
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L9506
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L9655
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L9688
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L15263
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L15457
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L15522
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L19033
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L19212
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L5120
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L5121
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L5123
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L5124
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)
// L5559
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L5565
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)
// L5696
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)
// L7039
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L8831
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L8837
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)
// L9225
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L9231
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)
// L9692
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L9698
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)
// L2474
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L3829
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L9506
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L9655
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L9688
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L15263
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L15457
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L15522
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L19033
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L19212
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L5120
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)
// L5121
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L5123
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L5124
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)
// L5559
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L5565
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)
// L5696
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)
// L7039
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L8831
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L8837
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)
// L9225
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L9231
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)
// L9692
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, true)
// L9698
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, false)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L4134
SoundChannelMute(PlayerGroupAll(), c_soundCategoryMusic, false)
// L4136
SoundChannelMute(PlayerGroupAll(), c_soundCategoryUI, false)
// L8811
SoundChannelMute(lp_players, lp_muteChannel, lp_muteUnmute)

# mods/heroesbrawlmods/arenamodemods/attackdefend.stormmod

LibAtDe.galaxy

// L860
SoundChannelMute(lp_players, c_soundCategoryAmbient, false)
// L861
SoundChannelMute(lp_players, c_soundCategoryVoice, false)
// L862
SoundChannelMute(lp_players, c_soundCategoryBuild, false)
// L863
SoundChannelMute(lp_players, c_soundCategorySAmbient, false)
// L864
SoundChannelMute(lp_players, c_soundCategoryUser11, false)
// L865
SoundChannelMute(lp_players, c_soundCategoryAlert, false)
// L866
SoundChannelMute(lp_players, c_soundCategoryMission, false)
// L867
SoundChannelMute(PlayerGroupAll(), c_soundCategoryFoley, false)
// L868
SoundChannelMute(PlayerGroupAll(), c_soundCategoryMovie, false)
// L1220
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)

# mods/heroesbrawlmods/arenamodemods/gardenarena.stormmod

LibAMGT.galaxy

// L211
SoundChannelMute(PlayerGroupAll(), c_soundCategoryUser14, false)
// L212
SoundChannelMute(PlayerGroupAll(), c_soundCategorySPieces, true)
// L213
SoundChannelMute(PlayerGroupAll(), c_soundCategoryMessage, true)
// L229
SoundChannelMute(PlayerGroupAll(), c_soundCategoryUser14, true)
// L230
SoundChannelMute(PlayerGroupAll(), c_soundCategorySPieces, false)
// L231
SoundChannelMute(PlayerGroupAll(), c_soundCategoryMessage, false)

# mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod

LibAMVS.galaxy

// L678
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, false)
// L707
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, true)

# mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmod

LibIGHS.galaxy

// L1545
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAmbient, lp_muteUnmute)
// L1546
SoundChannelMute(PlayerGroupAll(), c_soundCategoryVoice, lp_muteUnmute)
// L1547
SoundChannelMute(PlayerGroupAll(), c_soundCategoryBuild, lp_muteUnmute)
// L1548
SoundChannelMute(PlayerGroupAll(), c_soundCategorySAmbient, lp_muteUnmute)
// L1549
SoundChannelMute(PlayerGroupAll(), c_soundCategoryUser11, lp_muteUnmute)
// L1550
SoundChannelMute(PlayerGroupAll(), c_soundCategoryAlert, lp_muteUnmute)
// L1551
SoundChannelMute(PlayerGroupAll(), c_soundCategoryMission, lp_muteUnmute)
// L1552
SoundChannelMute(PlayerGroupAll(), c_soundCategoryFoley, lp_muteUnmute)
// L1553
SoundChannelMute(PlayerGroupAll(), c_soundCategoryMovie, lp_muteUnmute)
// L1554
SoundChannelMute(PlayerGroupAll(), c_soundCategoryDoodad, lp_muteUnmute)

# mods/heroesdata.stormmod

GameLib.galaxy

// L6707
SoundChannelMute(libCore_gv_playerGroupFromPlayer[lp_player], c_soundCategoryAmbient, true)