diff options
Diffstat (limited to 'meta/3rd/Cocos4.0/ccs.ComAudio.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/ccs.ComAudio.lua | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/ccs.ComAudio.lua b/meta/3rd/Cocos4.0/ccs.ComAudio.lua new file mode 100644 index 00000000..5c75e872 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ComAudio.lua @@ -0,0 +1,133 @@ + +---@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
\ No newline at end of file |