-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRageSound.lua
47 lines (39 loc) · 1.42 KB
/
RageSound.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---@meta
---@class RageSound
RageSound = {}
--- Returns the length of the sound loaded into this RageSound.
--- Returns -1 if no sound is loaded.
---@return float
function RageSound:get_length() end
--- Sets the pitch to fPitch. The associated ActorSound must
--- have `SupportsRateChanging = true` on load.
---@param fPitch float
---@return self
function RageSound:pitch(fPitch) end
--- Sets the sound's position to `fSecs` seconds after the
--- starting point.
---@param fSecs float
---@return self
function RageSound:position(fSecs) end
--- Actually sets the value of `sProperty` to `fVal`. The
--- supported properties depend on how the associated
--- ActorSound was loaded.
---@param sProperty string
---@param fVal float
function RageSound:SetParam(sProperty, fVal) end
--- Attempts (and typically fails) to set the value of
--- `sProperty` to `fVal`. The supported properties depend
--- on how the associated ActorSound was loaded. Use
--- `RageSound.SetParam` instead.
---@see RageSound.SetParam
---@param sProperty string
---@param fVal float
function RageSound:SetProperty(sProperty, fVal) end
--- Sets the speed (that is, the rate at which the sound
--- plays) to `fSpeed`. The associated ActorSound must have
--- `SupportsRateChanging = true` on load.
---@param fSpeed float
function RageSound:speed(fSpeed) end
--- Sets the volume to `fVolume`, which is between 0..1.
---@param fVolume float
function RageSound:volume(fVolume) end