# Pause Sound

Grammarpause|Pause/Unpause s
FlagsNative | Action

Pauses or unpauses a sound.

# Arguments

Returns — void

native void SoundPause(sound s, bool pause);

Category: Sound / Sounds

# Examples

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1415

    CatalogFieldValueSet(c_gameCatalogEffect, "CaptureMacGuffin", "PeriodCount", gv_pLAYER_01_USER, "48");
    libNtve_gf_CreateUnitsWithDefaultFacing(1, "RavenLordTributeWarning", c_unitCreateIgnorePlacement, libCore_gv_cOMPUTER_Neutral, PointFromId(118), null);
    SoundPause(libMapM_gv_mMRavenSpawnSound, true);
    SoundPlayAtPointForPlayer(SoundLink("Event_RavenCurse_TributeSpawn", -1), c_maxPlayers, PlayerGroupAll(), PointFromId(118), 2.0, 100.0, 7.5);
    gv_mMRavenSpawnSound = SoundLastPlayed();

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1680

    }

    SoundPause(libMapM_gv_mMRavenSpawnSound, false);
    autoA0EB99F0_g = gv_orderCutsceneUnitGroup;
    autoA0EB99F0_u = UnitGroupCount(autoA0EB99F0_g, c_unitCountAll);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1851

    TriggerExecute(gt_MapMechanicQ, true, true);
    gf_PauseGameStateforCutscene(false);
    SoundPause(libMapM_gv_mMRavenSpawnSound, true);
    DialogControlSetVisible(gv_mapMechanicHighlightTopFrame, PlayerGroupAll(), true);
    DialogControlSetVisible(gv_mapMechanicHighlightBottomFrame, PlayerGroupAll(), true);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1859

    gv_pauseReminders = false;
    TriggerExecute(gt_ResumeGameStateforCutscene, true, false);
    SoundPause(libMapM_gv_mMRavenSpawnSound, false);
    TriggerExecute(gt_ObjectiveGatherTributeCreate, true, false);
    TriggerEnable(gt_TributeFightReminder, true);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmapMapScript.galaxy:1415

    CatalogFieldValueSet(c_gameCatalogEffect, "CaptureMacGuffin", "PeriodCount", gv_pLAYER_01_USER, "48");
    libNtve_gf_CreateUnitsWithDefaultFacing(1, "RavenLordTributeWarning", c_unitCreateIgnorePlacement, libCore_gv_cOMPUTER_Neutral, PointFromId(118), null);
    SoundPause(libMapM_gv_mMRavenSpawnSound, true);
    SoundPlayAtPointForPlayer(SoundLink("Event_RavenCurse_TributeSpawn", -1), c_maxPlayers, PlayerGroupAll(), PointFromId(118), 2.0, 100.0, 7.5);
    gv_mMRavenSpawnSound = SoundLastPlayed();

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmapMapScript.galaxy:1680

    }

    SoundPause(libMapM_gv_mMRavenSpawnSound, false);
    autoA0EB99F0_g = gv_orderCutsceneUnitGroup;
    autoA0EB99F0_u = UnitGroupCount(autoA0EB99F0_g, c_unitCountAll);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmapMapScript.galaxy:1851

    TriggerExecute(gt_MapMechanicQ, true, true);
    gf_PauseGameStateforCutscene(false);
    SoundPause(libMapM_gv_mMRavenSpawnSound, true);
    DialogControlSetVisible(gv_mapMechanicHighlightTopFrame, PlayerGroupAll(), true);
    DialogControlSetVisible(gv_mapMechanicHighlightBottomFrame, PlayerGroupAll(), true);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmapMapScript.galaxy:1859

    gv_pauseReminders = false;
    TriggerExecute(gt_ResumeGameStateforCutscene, true, false);
    SoundPause(libMapM_gv_mMRavenSpawnSound, false);
    TriggerExecute(gt_ObjectiveGatherTributeCreate, true, false);
    TriggerEnable(gt_TributeFightReminder, true);

mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmodbase.stormdata/LibVLSK.galaxy:848

    // Automatic Variable Declarations
    // Implementation
    SoundPause(libVLSK_gv_capturePoint_ControllingSound_Ally[lp_team], lp_pauseUnpause);
    SoundPause(libVLSK_gv_capturePoint_ControllingSound_Enemy[lp_team], lp_pauseUnpause);
}

mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmodbase.stormdata/LibVLSK.galaxy:849

    // Implementation
    SoundPause(libVLSK_gv_capturePoint_ControllingSound_Ally[lp_team], lp_pauseUnpause);
    SoundPause(libVLSK_gv_capturePoint_ControllingSound_Enemy[lp_team], lp_pauseUnpause);
}