# Stop Sound Channel

Grammar — Stop channel channel for players
FlagsNative | Action

Stops all sounds in a sound channel for the specified players.

# Arguments

  • playergroup — Players
  • int<preset::SoundChannel> — Channel

Returns — void

native void SoundChannelStop(
	playergroup players,
	int channel,
);

Category: Sound / Sound Channels

# Examples

campaigns/swarm.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.galaxy:7782

    TransmissionClearAll();
    libVCMI_gf_StopCinematicSounds();
    SoundChannelStop(PlayerGroupAll(), c_soundCategoryOther);
    Wait(0.5, c_timeReal);
    libVoiC_gf_DisplayTimestamp("Ulnar03MissionEnd", false);

campaigns/voidstory.sc2campaignbase.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.sc2modbase.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.sc2modbase.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);