Sound mix layer: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Line 1: Line 1:
{{CD|CSoundMixLayer}}
{{CD|CSoundMixLayer}}
{{this is a|name=sound_mix_layer|game=Left 4 Dead 2|e0}} It is an entity used to set a mix layer to a specific value.
{{this is a|point entity|name=sound_mix_layer|game=Left 4 Dead 2}} It is an entity used to set a mix layer to a specific value.
{{note|Developers seeking how to manage priorities of specific sounds should refer to mixgroups found in '''pak01_dir.vpk:''' /scripts/soundmixers.txt}}
{{note|Developers seeking how to manage priorities of specific sounds should refer to mixgroups found in '''pak01_dir.vpk:''' /scripts/soundmixers.txt}}
__NOTOC__
__NOTOC__

Revision as of 17:52, 17 May 2024

C++ Class hierarchy
CSoundMixLayer
CBaseEntity

sound_mix_layer is a point entity available in Left 4 Dead 2 Left 4 Dead 2. It is an entity used to set a mix layer to a specific value.

Note.pngNote:Developers seeking how to manage priorities of specific sounds should refer to mixgroups found in pak01_dir.vpk: /scripts/soundmixers.txt

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Mix Layer Name (MixLayerName) <string>
Name of the mix layer to be setting the level of.
Level (Level) <float>
Set the Mix Layer Level

Inputs

Level <floatRedirectInput/float>
Set the Mix Layer Level

Mix layers

More information regarding MixLayers can be found in pak01_dir.vpk: /scripts/soundmixers.txt

These are listed in the dev console commmand snd_list_mixers

  • mobBeatingLayer
  • mobRulesLayer
  • zombatMusicLayer
  • zombatMusic2Layer
  • zombatMusic3Layer
  • witchRageLayer
  • safeRoomLayer
  • unaliveLayer
  • PZVOWarnLayer
  • chargerAttackLayer
  • commentaryLayer
  • undeathLayer
  • adrenalineLayer
  • fluMusicLayer
  • rainLayer
  • stormLayer
  • voipLayer

Entries listed under the dev console command snd_list_mix_groups may work with a "Layer" post-fix, but need further testing.

External links

Audio Mixing (recorded music) - Wikipedia article regarding technical aspects of audio mixing