-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAudioSource.lua
91 lines (90 loc) · 2.51 KB
/
AudioSource.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---@meta Ravenscript
---*Unity Type*
---
---[RS Docs](http://ravenfieldgame.com/ravenscript/api/AudioSource.html)
---@class AudioSource: Component
---@overload fun():AudioSource
---@operator call:AudioSource
---@field bypassEffects bool
---@field bypassListenerEffects bool
---@field bypassReverbZones bool
---@field clip AudioClip
---@field dopplerLevel float
---@field enabled bool
---**Const**
---@field gameObject GameObject
---@field ignoreListenerPause bool
---@field ignoreListenerVolume bool
---**Const**
---@field isActiveAndEnabled bool
---**Const**
---@field isPlaying bool
---**Const**
---@field isVirtual bool
---@field loop bool
---@field maxDistance float
---@field minDistance float
---@field mute bool
---@field name string
---@field panStereo float
---@field pitch float
---@field playOnAwake bool
---@field priority int
---@field reverbZoneMix float
---@field spatialBlend float
---@field spatialize bool
---@field spatializePostEffects bool
---@field spread float
---@field tag string
---@field time float
---@field timeSamples int
---**Const**
---@field transform Transform
---@field volume float
AudioSource = {
---@param index int
---@param value float
---@return bool
GetAmbisonicDecoderFloat = function(index, value) end,
---Gets a float[64] array of the next audio samples.
---@param samples? float[]
---@param channel int
---@return nil | float[]
GetOutputData = function(samples, channel) end,
---@param index int
---@param value float
---@return bool
GetSpatializerFloat = function(index, value) end,
---Gets a float[64] array of current spectrum data using FFT.
---@param channel int
---@return float[]
GetSpectrumData = function(channel) end,
Pause = function() end,
---@param delay? UInt64
Play = function(delay) end,
---@param delay float
PlayDelayed = function(delay) end,
---@param clip AudioClip
---@param volumeScale float
PlayOneShot = function(clip, volumeScale) end,
---@param time double
PlayScheduled = function(time) end,
---@param index int
---@param value float
---@return bool
SetAmbisonicDecoderFloat = function(index, value) end,
---Sets the output audio mix of this audio source.
---@param mixer AudioMixer
SetOutputAudioMixer = function(mixer) end,
---@param time double
SetScheduledEndTime = function(time) end,
---@param time double
SetScheduledStartTime = function(time) end,
Stop = function() end,
UnPause = function() end,
---*static*
---@param clip AudioClip
---@param position Vector3
---@param volume? float
PlayClipAtPoint = function(clip, position, volume) end,
}