Garry's Mod

Garry's Mod

Not enough ratings
Audio setup (cvar's)
By Zelloyn
Configuring audio and microphone with console commands
   
Award
Favorite
Favorited
Unfavorite
Introduction
Readiness progress 15%/100%

The values of the default console variables differ depending on the hardware/device configuration, as well as the way they work and their presence on different Source Engine builds and games and in different mods (unofficial Valve games).

Please report if you have problems because of some commands are crashing, errors, or it just does not work on your pc. Also some commands may not work on the server, because they are overridden in the server config, and when you connect to the server, your settings will be overridden.

Designations
// -Means not"official" information that is not on Valve Wiki, as well as my comments.

** - Means information taken from Valve sources and Valve Wiki.
(This does not mean that it is completely true)
Audio system setup test map
**Map in progress**
Sound cvar's
snd_async_fullyasync
Value 0 def.
// Asynchronous loading works partially

Value 1
** All playback is fully async (sound doesn't play until data arrives).
// Skip sound cache, load all sounds asynchronously

snd_async_minsize
Value 262144 def.
// Minimum size of a sound to run it in an asynchronous stream

Value 0
// Load all sounds asynchronously. completely run the sound system in a separate thread

snd_mix_async
Value 0 def.
// Audio mixing takes place in the main thread of the game

Value 1
// Audio mixer works in a separate thread (asynchronously from the main game thread)

snd_mixahead
Value ~(0.05) ms. def.
// How many seconds of the 44100 sample rate we are mixing. The value is selected as a fraction of samples.

snd_delay_sound_shift
Value 0 def.
// Reduce latency (risky with hiccups)

snd_pitchquality
Value 0
// Use a line mixer for sound, increasing productivity

Value 1 def.
// Use interpolated mixer for sound, improve sound quality

snd_disable_mixer_duck
Value 0 def.
// Enable sound mixing for volume control

Value 1
// Disable mixing some sounds so that they are louder than others
Disables muting, which causes some sounds marked as important to be played at a higher volume than others

snd_soundmixer
Value 0 def.
//

Value 1
//

snd_duckerattacktime
Value 0 def.
//

snd_duckerreleasetime
Value 2 def.
//

snd_duckerthreshold
Value 0 def.
//

snd_ducktovolume
Value 0 def.
//

snd_fixed_rate
Value 0 def.
//

snd_foliage_db_loss
(Cheat)
Value 4 def.
//

snd_gain
(Cheat)
Value 4 def.
//

snd_gain_max
(Cheat)
Value 4 def.
//

snd_gain_min
(Cheat)
Value 4 def.
//

snd_obscured_gain_dB
(Cheat)
Value 4 def.
//

snd_refdb
(Cheat)
Value 60 def.
//

snd_refdist
(Cheatd)
Value 36 def.
//

snd_musicvolume
// Music volume

snd_legacy_surround
Value 1 def.
//

snd_lockpartial
Value 1 def.
//

snd_mute_losefocus
Value 0
//

Value 1 def.
//

snd_surround_speakers
Value -1
// Auto-detect speaker configuration from the OS

Value 0
** Headphones
// reduced frequency range

Value 2
** 2 Speakers (Stereo)
//

Value 4
** 4 Speakers (Quadraphonic)
//

Value 5
** 5.1 Surround
//

Value 7
** 7.1 Surround
//

snd_spatialize_roundrobin
** Lowend optimization: if nonzero, spatialize only a fraction of sound channels each frame. 1/2^x of channels will be spatialized
//

Value 0 def.
// The spatiality of each frame

Value 1
// Spatial sounds every 2 frames, less performance gain

Value 3
// Spatialized sounds every 8 frames (2 ^ 3) using a looping algorithm. Pretty reasonable performance advantage, but spatialization delay


snd_cull_duplicates
Value 0 def.
// Do not skip playing repetitive sounds

Value 1
// Play only one of each duplicate sound at a time

snd_noextraupdate
Value 0
//

Value 1
// Do not update the sound twice
//

snd_defer_trace
Value 0
// Immediate tracing on the first frame

Value 1 def.
// Defer DSP spatial processing with tracing until the next frame


snd_vox_globaltimeout
Value 300 def.
//

snd_vox_sectimetout
Value 300 def.
//

snd_vox_seqtimetout
Value 300 def.
//
DSP cvar's
dsp_volume
Value 1 def.
//

dsp_automatic
Value 60 def.
//

dsp_db_min
Value 95 def.
//

dsp_db_mixdrop
Value 0 def.
//

dsp_dist_max
(Cheat)
Value 1440 def.
//

dsp_dist_min
(Cheat)
Value 0 def.
//

dsp_facingaway
Value 0 def.
//

dsp_mix_max
Value 0 def.
//

dsp_mix_min
Value 0 def.
//

dsp_off
(Cheat)
Value 0 def.
//

dsp_player
Value 0 def.

dsp_room
Value 0
// Disable automatic DSP

Value 1
// Enable automatic DSP, adjust DSP according to the type/size of room you are in

dsp_vol_2ch
Value 1 def.
//

dsp_vol_4ch
Value 0 def.
//

dsp_vol_5ch
Value 0 def.
//


dsp_speaker
Value 50
// Administrator effect (can be from 50 to 59)
Value 0
// Disable administrator effect
Env_microphone


dsp_water
Value 14
// Water dimming effect (low delay)

dsp_water
Value 15
// Water dimming effect (medium delay)

dsp_water
Value 16
// Water dimming effect (high delay)

dsp_water
Value 0
// Deactivate water dimming effect

dsp_spatial
Value 40
// Spatial delay effect for position sound

Value 0
// Disable spatial effect

dsp_enhance_stereo
Value 0
// Disable additional DSP spatial effects and delays

Value 1
// Enable application of DSP spatial effects to all channels

dsp_slow_cpu
Value 0
// Use improved positional effects

Value 1
// Disable initialization of improved spatial processing

Automatic DSP

adsp_alley_min 122 def.
adsp_courtyard_min 126 def.
adsp_door_height 112 def.
adsp_duct_min 106 def.
adsp_hall_min 110 def.
adsp_low_ceiling 108 def.
adsp_opencourtyard_min 126 def.
adsp_openspace_min 130 def.
adsp_openstreet_min 118 def.
adsp_openwall_min 130 def.
adsp_room_min 102 def.
adsp_street_min 118 def.
adsp_tunnel_min 114 def.
adsp_wall_height 128 def.
Voice (microphone) cvar's
voice_enable
Value 1
// Turn on microphone sound

voice_fadeouttime
Value 0 def.
// Affects the fade out time of your voice
// Maybe Value 1 makes the fade longer, maybe it can eliminate clipping in some situations. For some reason Value >0 just makes the microphone sound quieter

voice_forcemicrecord
Value 0 def.
// Enable microphone recording

voice_inputfromfile
Value 0 def.
// Allow or disallow clients from using voice_inputfromfile on this server.



voice_loopback
Value 0 def.
//

voice_gain_max
Value 5 def.
// Sets the gain of your microphone, a value >1 will increase the volume.
Perhaps a value of 1 might slightly reduce clipping in some situations.

voice_gain_downward_multiplier
Value 100 def.
// How fast it will reduce the gain when it detects that the current gain value will cause clipping
//Reaction time, after clipping is detected. Once detected, it starts dynamically lowering the microphone volume (then goes back down).
//Reducing this value allows you to adjust the voice volume down much faster, if necessary, to avoid clipping (if it suddenly gets much louder).


voice_modenable
Value 1
// Enable voice in this mod.

voice_overdrivefadetime
Value 0.4 def.
// The sound level is restored in “0.4” sec after the call is terminated

voice_overdrive
Value 2 def.
// When talking, the level of other sounds (including shooting) is reduced by half

voice_overdrivefadetime
Value 0

voice_profile
Value 0 def.

voice_recordtofile
Value 0 def.
** Record mic data and decompressed voice data into 'voice_micdata.wav' and 'voice_decompressed.wav'


voice_scale
Value 1 def.
// Receiving volume, 0.1-1
//

voice_serverdebug
Value 0 def.
//

voice_showchannels
Value 0 def.

voice_showincoming
Value 0 def.

voice_steal
Value 2
// Reuse unimportant sound channels, increases FPS and sound quality (does not work in autoexec)

sv_voicecodec
Value 0
// Specifies which voice codec DLL to use in the game. Set the DLL name without extension.

sv_mumble_positionalaudio
//
Debug cvar's
snd_restart
(Cmd)
** Restart sound system
// This will restart the game engines sound system. This works most of the time when a problem occurs, probably because it temporarily releases problematic resource locks.

snd_show
(Cheat)
** Show sounds info
//

snd_showclassname
Value 0 def.
//

snd_showmixer
Value 0 def.
//

sndplaydelay
** Usage: sndplaydelay delay_in_sec (negative to skip ahead) soundname
//

snd_showstart
(Cheat)
Value 0 def.
//

Value 1 def.
//

snd_visualize
(Cheat)
Value 0 def.
//

Value 1
** Show sounds location in world
//

snd_vox_captiontrace
Value 0 def.
//

Value 1
** Shows sentence name for sentences which are set not to show captions

snd_ShowThreadFrameTime
Value 0 def.
//

Value 1
//

snd_async_showmem
** Show async memory stats
//

snd_async_spew_blocking
Value 1
** Spew message to console any time async sound loading blocks on file i/o.
//

snd_async_stream_spew
Value 0 def.
//

snd_buildcache
** <directory or VPK filename> Rebulds sound cache for a given search path
//

snd_dumpclientsounds
(Cmd)
** Dump sounds to VXConsole
//

snd_profile
Value 0 def.
//

snd_async_flush
Value 0 def.
** Flush all unlocked async audio data
//

soundfade
** Fade client volume
//

soundinfo
** Describe the current sound device
//

soundlist
** List all known sounds
//

soundpatch_captionlength
Value 2 def.
** How long looping soundpatch captions should display for
//

soundscape_fadetime
Value 3 def.
** Time to crossfade sound effects between soundscapes
//

soundscape_flush
** Flushes the server & client side soundscapes
//

dsp_reload
(Cmd)
Others
windows_speaker_config -1
// Windows speaker configuration

volume
// Set the primary volume
Value

volume_sfx
** Adjusts the volume of sound effects & NPC voices, but does not affect player voice chat or music, both of which have their own
Value
Problem cvar's
You can also use them
snd_mixahead
// A low value can cause jerky and wheezy sounds. It's probably undesirable to use it if you're not getting a decent frame rate, as the drop in performance causes sounds to stutter and crackle
Ready-made config
If you want, you can use the ready-made config
This does not mean that it will be optimal for you, and suitable in all events and situations

Temporarily unavailable
3 Comments
[S] Rallin λkoliet 3 Sep, 2024 @ 9:47am 
voice_loopback используется для проверки микрофона в настройках звука, эту команду можно использовать во время игры поставив переменную 1 (лично я ее использую когда пользуюсь соундпадом)
DriZZLo 4 May, 2024 @ 6:35am 
помогите что делать вожу команды на стерео\моно звук но все равно он обьемный
спермоежка 23 Jan, 2024 @ 12:27pm 
спасибо