# Set All Sound Channel Volumes
Grammar — Set all sound channel volumes for mode over duration seconds for players
Flags —Action
Sets the volume for all sound channels for the specified player group.
# Arguments
int
[ preset::VolumeChannelMode ] — Modeplayergroup
— Playersfixed
— Duration
Returns — void
void libNtve_gf_SetAllSoundChannelVolumes(
int lp_mode,
playergroup lp_players,
fixed lp_duration,
);
# Related
Category: Sound / Sound Channels
- [F] —
void
— Mute/Unmute Sound Channel — ( SoundChannelMute ) - [F] —
void
— Pause Sound Channel — ( SoundChannelPause ) - [F] —
void
— Stop Sound Channel — ( SoundChannelStop ) - [F] —
void
— Set Sound Channel Volume — ( SoundChannelSetVolume ) - [F] —
void
— Set All Sound Channel Volumes — ( libNtve_gf_SetAllSoundChannelVolumes ) - [F] —
void
— Insert Sound Channel Digital Effect — ( SoundChannelDSPInsert ) - [F] —
void
— Remove Sound Channel Digital Effect — ( SoundChannelDSPRemove )
# Examples
# campaigns/liberty.sc2campaign
// L1358
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L1655
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L7555
libNtve_gf_SetAllSoundChannelVolumes(1, PlayerGroupAll(), 0.5)
// L7558
libNtve_gf_SetAllSoundChannelVolumes(2, PlayerGroupAll(), 1.0)
// L5012
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L2642
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, PlayerGroupAll(), 0.5)
// L2659
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, PlayerGroupAll(), 0.5)
// L6606
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L7555
libNtve_gf_SetAllSoundChannelVolumes(1, PlayerGroupAll(), 0.5)
// L7558
libNtve_gf_SetAllSoundChannelVolumes(2, PlayerGroupAll(), 1.0)
// L5012
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L2642
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, PlayerGroupAll(), 0.5)
// L2659
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, PlayerGroupAll(), 0.5)
// L6606
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L1358
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L1655
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
# campaigns/libertystory.sc2campaign
// L835
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, PlayerGroupAll(), 2.5)
// L839
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, PlayerGroupAll(), 1.0)
// L10215
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Cinematic, PlayerGroupAll(), 0.0)
# campaigns/swarmstory.sc2campaign
// L3733
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 1.0)
// L3737
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.5)
// L3741
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.25)
// L3783
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 1.5)
// L3788
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 2.5)
// L3870
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Victory, PlayerGroupAll(), 1.0)
// L3881
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Victory, PlayerGroupAll(), 1.0)
# campaigns/swarmstoryutil.sc2mod
// L2449
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, PlayerGroupAll(), lp_duration)
# campaigns/void.sc2campaign
// L1721
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L3898
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L3900
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L3930
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L3932
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L3939
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L3944
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L3974
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L3976
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L4058
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L2163
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L2175
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L2203
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L2205
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L2237
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L2239
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L2894
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L2898
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L2919
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L2923
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L1721
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L3898
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L3900
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L3930
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L3932
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L3939
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L3944
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L3974
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L3976
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L4058
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L2163
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L2175
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L2203
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L2205
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L2237
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L2239
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L2894
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L2898
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
// L2919
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.0)
// L2923
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.0)
# campaigns/voidstory.sc2campaign
// L8566
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 1.0)
// L8570
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.5)
// L8574
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.25)
// L8616
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 1.5)
// L8621
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 2.5)
// L8703
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Victory, PlayerGroupAll(), 1.0)
# campaigns/voidstory.sc2campaign
// L1033
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, PlayerGroupAll(), lp_duration)
# mods/core.sc2mod
// L2042
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Cinematic, lv_validPlayers, MaxF(lp_duration, 1.5))
// L2089
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, lv_validPlayers, MaxF(lp_duration, 1.5))
// L1732
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Cinematic, lv_validPlayers, MaxF(lp_duration, 1.5))
// L1779
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, lv_validPlayers, MaxF(lp_duration, 1.5))
# mods/heroesdata.stormmod
// L10282
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, libCore_gv_playerGroupFromPlayer[lp_player], 0.0)
# mods/heroesdata.stormmod
// L3423
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, lp_players, 2.5)
// L3429
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, lp_players, 1.0)
# mods/heroesdata.stormmod
// L1345
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupSingle(lp_player), 1.5)
# mods/liberty.sc2mod
// L589
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, lp_players, 2.5)
// L593
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, lp_players, 1.0)
# mods/missionpacks/campaigncommon.sc2mod
// L3987
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 1.0)
// L3991
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.5)
// L3995
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 0.25)
// L4037
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 1.5)
// L4042
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 2.5)
// L4124
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Victory, PlayerGroupAll(), 1.0)
# mods/missionpacks/novacampaign.sc2mod
// L931
libNtve_gf_SetAllSoundChannelVolumes(lp_mode, PlayerGroupAll(), lp_duration)
# mods/novastoryassets.sc2mod
// L9652
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 1.0)
// L9704
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.25)
// L9709
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 1.0)
// L9726
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.25)
// L9746
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 1.0)
// L9652
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 1.0)
// L9704
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.25)
// L9709
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, PlayerGroupAll(), 1.0)
// L9726
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Speech, PlayerGroupAll(), 0.25)