# Stop Sound Channel
Grammar — Stop channel channel for players
Flags —Native
|Action
Stops all sounds in a sound channel for the specified players.
# Arguments
playergroup
— Playersint
<preset::SoundChannel> — Channel
Returns — void
native void SoundChannelStop(
playergroup players,
int channel,
);
# Related
Category: Sound / Sound Channels
- Mute/Unmute Sound Channel —
void
— SoundChannelMute - Pause Sound Channel —
void
— SoundChannelPause - Stop Sound Channel —
void
— SoundChannelStop - Set Sound Channel Volume —
void
— SoundChannelSetVolume - Set All Sound Channel Volumes —
void
— libNtve_gf_SetAllSoundChannelVolumes - Insert Sound Channel Digital Effect —
void
— SoundChannelDSPInsert - Remove Sound Channel Digital Effect —
void
— SoundChannelDSPRemove
# Examples
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/MapScript.galaxy:6327
SoundStop(gv_victoryZergSound, true);
SoundStop(gv_victoryPodSound, true);
SoundChannelStop(PlayerGroupAll(), c_soundCategoryCombat);
CameraShakeStop(gv_pLAYER_01_USER);
TriggerExecute(gt_Victory, true, false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:9892
SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryOther, 0.0, 0.0);
SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryOther, 100.0, 3.0);
SoundChannelStop(PlayerGroupAll(), c_soundCategoryMusic);
SoundChannelPause(PlayerGroupAll(), c_soundCategoryMusic, false);
SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "ZCampaignIntroMusic", c_soundtrackCueAny, c_soundtrackIndexAny, false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal01.sc2map — MapScript.galaxy:6327
SoundStop(gv_victoryZergSound, true);
SoundStop(gv_victoryPodSound, true);
SoundChannelStop(PlayerGroupAll(), c_soundCategoryCombat);
CameraShakeStop(gv_pLAYER_01_USER);
TriggerExecute(gt_Victory, true, false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:9892
SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryOther, 0.0, 0.0);
SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryOther, 100.0, 3.0);
SoundChannelStop(PlayerGroupAll(), c_soundCategoryMusic);
SoundChannelPause(PlayerGroupAll(), c_soundCategoryMusic, false);
SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "ZCampaignIntroMusic", c_soundtrackCueAny, c_soundtrackIndexAny, false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar02.sc2map/MapScript.galaxy:9772
SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryOther, 100.0, 0.0);
SoundStopAllTriggerSounds(false);
SoundChannelStop(PlayerGroupAll(), c_soundCategoryOther);
GameSetLighting("UlnarInner", 0.0);
ActorSend(ActorFromDoodad(DoodadFromId(757)), "SetOpacity");
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar03.sc2map/MapScript.galaxy:7782
TransmissionClearAll();
libVCMI_gf_StopCinematicSounds();
SoundChannelStop(PlayerGroupAll(), c_soundCategoryOther);
Wait(0.5, c_timeReal);
libVoiC_gf_DisplayTimestamp("Ulnar03MissionEnd", false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar02.sc2map — MapScript.galaxy:9772
SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryOther, 100.0, 0.0);
SoundStopAllTriggerSounds(false);
SoundChannelStop(PlayerGroupAll(), c_soundCategoryOther);
GameSetLighting("UlnarInner", 0.0);
ActorSend(ActorFromDoodad(DoodadFromId(757)), "SetOpacity");
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar03.sc2map — MapScript.galaxy:7782
TransmissionClearAll();
libVCMI_gf_StopCinematicSounds();
SoundChannelStop(PlayerGroupAll(), c_soundCategoryOther);
Wait(0.5, c_timeReal);
libVoiC_gf_DisplayTimestamp("Ulnar03MissionEnd", false);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1468
SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryMusic, false);
SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryAmbience, false);
SoundChannelStop(PlayerGroupAll(), c_soundCategoryUI);
SoundStopAllTriggerSounds(false);
TransmissionClearAll();
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:18524
TechTreeBehaviorAllow(lv_player, "FenixExplode", false);
libNtve_gf_SetUpgradeLevelForPlayer(lv_player, "AStrongHeart", 1);
SoundChannelStop(PlayerGroupSingle(lv_player), c_soundCategoryVoice);
auto735B6DBB_val = lv_unitType;
if (auto735B6DBB_val == "FenixArbiter") {
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:9458
SoundtrackPause(PlayerGroupAll(), c_soundtrackCategoryMusic, true, false);
SoundtrackPause(PlayerGroupAll(), c_soundtrackCategoryAmbience, true, false);
SoundChannelStop(PlayerGroupAll(), c_soundCategoryUI);
UISetCursorVisible(PlayerGroupAll(), false);
Wait(0.5, c_timeGame);