Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lua/starfall/libs_sh/sound.lua
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function sound_methods:isPlaying()
return unwrap(self):IsPlaying()
end

--- Sets the sound level in dB. Won't work unless the sound is playing.
--- Sets the sound level in dB. Won't work if the sound is already playing.
-- @param number level dB level, for information on the value to use see https://developer.valvesoftware.com/wiki/Soundscripts#SoundLevel
function sound_methods:setSoundLevel(level)
checkluatype(level, TYPE_NUMBER)
Expand All @@ -199,15 +199,15 @@ function sound_methods:getSoundLevel()
return unwrap(self):GetSoundLevel()
end

--- Sets the sound dsp
--- Sets the sound dsp value
-- @param number dsp (0 - 133) DSP values. List can be found here https://developer.valvesoftware.com/wiki/Dsp_presets
function sound_methods:setDSP(dsp)
checkluatype(dsp, TYPE_NUMBER)
unwrap(self):SetDSP(math.Clamp(dsp, 0, 133))
end

--- Gets the sound dsp
-- @return number dsp (0 - 133) DSP value.
--- Gets the sound dsp value
-- @return number (0 - 133) DSP value.
function sound_methods:getDSP()
return unwrap(self):GetDSP()
end
Expand Down