summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/ccs/ComAudio.lua
blob: d198e2ef02a52f9b5e5bc7b24e924c089e917e39 (plain)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---@meta

---@class ccs.ComAudio :cc.Component@all parent class: Component,PlayableProtocol
local ComAudio={ }
ccs.ComAudio=ComAudio




---* 
---@return self
function ComAudio:stopAllEffects () end
---* 
---@return float
function ComAudio:getEffectsVolume () end
---* 
---@param nSoundId unsigned_int
---@return self
function ComAudio:stopEffect (nSoundId) end
---* 
---@return float
function ComAudio:getBackgroundMusicVolume () end
---* 
---@return boolean
function ComAudio:willPlayBackgroundMusic () end
---* 
---@param volume float
---@return self
function ComAudio:setBackgroundMusicVolume (volume) end
---* / @{/ @name implement Playable Protocol
---@return self
function ComAudio:start () end
---@overload fun():self
---@overload fun(boolean:boolean):self
---@param bReleaseData boolean
---@return self
function ComAudio:stopBackgroundMusic (bReleaseData) end
---* 
---@return self
function ComAudio:pauseBackgroundMusic () end
---* 
---@return boolean
function ComAudio:isBackgroundMusicPlaying () end
---* 
---@return boolean
function ComAudio:isLoop () end
---* 
---@return self
function ComAudio:resumeAllEffects () end
---* 
---@return self
function ComAudio:pauseAllEffects () end
---* 
---@param pszFilePath char
---@return self
function ComAudio:preloadBackgroundMusic (pszFilePath) end
---@overload fun(char:char):self
---@overload fun(char:char,boolean:boolean):self
---@overload fun():self
---@param pszFilePath char
---@param bLoop boolean
---@return self
function ComAudio:playBackgroundMusic (pszFilePath,bLoop) end
---* 
---@return self
function ComAudio:stop () end
---* lua endToLua
---@return self
function ComAudio:endToLua () end
---@overload fun(char:char):self
---@overload fun(char:char,boolean:boolean):self
---@overload fun():self
---@param pszFilePath char
---@param bLoop boolean
---@return unsigned_int
function ComAudio:playEffect (pszFilePath,bLoop) end
---* 
---@param pszFilePath char
---@return self
function ComAudio:preloadEffect (pszFilePath) end
---* 
---@param bLoop boolean
---@return self
function ComAudio:setLoop (bLoop) end
---* 
---@param pszFilePath char
---@return self
function ComAudio:unloadEffect (pszFilePath) end
---* 
---@return self
function ComAudio:rewindBackgroundMusic () end
---* 
---@param nSoundId unsigned_int
---@return self
function ComAudio:pauseEffect (nSoundId) end
---* 
---@return self
function ComAudio:resumeBackgroundMusic () end
---* 
---@param pszFilePath char
---@return self
function ComAudio:setFile (pszFilePath) end
---* 
---@param volume float
---@return self
function ComAudio:setEffectsVolume (volume) end
---* 
---@return char
function ComAudio:getFile () end
---* 
---@param nSoundId unsigned_int
---@return self
function ComAudio:resumeEffect (nSoundId) end
---* 
---@return self
function ComAudio:create () end
---* 
---@return cc.Ref
function ComAudio:createInstance () end
---* js NA<br>
---* lua NA
---@return self
function ComAudio:onRemove () end
---* 
---@param r void
---@return boolean
function ComAudio:serialize (r) end
---* 
---@return boolean
function ComAudio:init () end
---* js NA<br>
---* lua NA
---@return self
function ComAudio:onAdd () end