--------------------------------
-- @module SimpleAudioEngine
-- @parent_module cc
--------------------------------
-- brief Preload background music
-- param pszFilePath The path of the background music file.
-- js preloadMusic
-- lua preloadMusic
-- @function [parent=#SimpleAudioEngine] preloadBackgroundMusic
-- @param self
-- @param #char pszFilePath
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Stop playing background music
-- param bReleaseData If release the background music data or not.As default value is false
-- js stopMusic
-- lua stopMusic
-- @function [parent=#SimpleAudioEngine] stopBackgroundMusic
-- @param self
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Stop all playing sound effects
-- @function [parent=#SimpleAudioEngine] stopAllEffects
-- @param self
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief The volume of the background music within the range of 0.0 as the minimum and 1.0 as the maximum.
-- js getMusicVolume
-- lua getMusicVolume
-- @function [parent=#SimpleAudioEngine] getBackgroundMusicVolume
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- brief Resume playing background music
-- js resumeMusic
-- lua resumeMusic
-- @function [parent=#SimpleAudioEngine] resumeBackgroundMusic
-- @param self
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Set the volume of background music
-- param volume must be within the range of 0.0 as the minimum and 1.0 as the maximum.
-- js setMusicVolume
-- lua setMusicVolume
-- @function [parent=#SimpleAudioEngine] setBackgroundMusicVolume
-- @param self
-- @param #float volume
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief preload a compressed audio file
-- details the compressed audio will be decoded to wave, then written into an internal buffer in SimpleAudioEngine
-- param pszFilePath The path of the effect file
-- @function [parent=#SimpleAudioEngine] preloadEffect
-- @param self
-- @param #char pszFilePath
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Indicates whether the background music is playing
-- return true if the background music is playing, otherwise false
-- js isMusicPlaying
-- lua isMusicPlaying
-- @function [parent=#SimpleAudioEngine] isBackgroundMusicPlaying
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- brief The volume of the effects within the range of 0.0 as the minimum and 1.0 as the maximum.
-- @function [parent=#SimpleAudioEngine] getEffectsVolume
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- brief Indicates whether any background music can be played or not.
-- return true if background music can be played, otherwise false.
-- js willPlayMusic
-- lua willPlayMusic
-- @function [parent=#SimpleAudioEngine] willPlayBackgroundMusic
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- brief Pause playing sound effect
-- param nSoundId The return value of function playEffect
-- @function [parent=#SimpleAudioEngine] pauseEffect
-- @param self
-- @param #unsigned int nSoundId
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Play sound effect with a file path, pitch, pan and gain
-- param pszFilePath The path of the effect file.
-- param bLoop Determines whether to loop the effect playing or not. The default value is false.
-- param pitch Frequency, normal value is 1.0. Will also change effect play time.
-- param pan Stereo effect, in the range of [-1..1] where -1 enables only left channel.
-- param gain Volume, in the range of [0..1]. The normal value is 1.
-- return the OpenAL source id
-- note Full support is under development, now there are limitations:
-- - no pitch effect on Samsung Galaxy S2 with OpenSL backend enabled;
-- - no pitch/pan/gain on emscrippten, win32, marmalade.
-- @function [parent=#SimpleAudioEngine] playEffect
-- @param self
-- @param #char pszFilePath
-- @param #bool bLoop
-- @param #float pitch
-- @param #float pan
-- @param #float gain
-- @return unsigned int#unsigned int ret (return value: unsigned int)
--------------------------------
-- brief Rewind playing background music
-- js rewindMusic
-- lua rewindMusic
-- @function [parent=#SimpleAudioEngine] rewindBackgroundMusic
-- @param self
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Play background music
-- param pszFilePath The path of the background music file,or the FileName of T_SoundResInfo
-- param bLoop Whether the background music loop or not
-- js playMusic
-- lua playMusic
-- @function [parent=#SimpleAudioEngine] playBackgroundMusic
-- @param self
-- @param #char pszFilePath
-- @param #bool bLoop
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Resume all playing sound effect
-- @function [parent=#SimpleAudioEngine] resumeAllEffects
-- @param self
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Set the volume of sound effects
-- param volume must be within the range of 0.0 as the minimum and 1.0 as the maximum.
-- @function [parent=#SimpleAudioEngine] setEffectsVolume
-- @param self
-- @param #float volume
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Stop playing sound effect
-- param nSoundId The return value of function playEffect
-- @function [parent=#SimpleAudioEngine] stopEffect
-- @param self
-- @param #unsigned int nSoundId
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Pause playing background music
-- js pauseMusic
-- lua pauseMusic
-- @function [parent=#SimpleAudioEngine] pauseBackgroundMusic
-- @param self
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Pause all playing sound effect
-- @function [parent=#SimpleAudioEngine] pauseAllEffects
-- @param self
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief unload the preloaded effect from internal buffer
-- param pszFilePath The path of the effect file
-- @function [parent=#SimpleAudioEngine] unloadEffect
-- @param self
-- @param #char pszFilePath
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Resume playing sound effect
-- param nSoundId The return value of function playEffect
-- @function [parent=#SimpleAudioEngine] resumeEffect
-- @param self
-- @param #unsigned int nSoundId
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Release the shared Engine object
-- warning It must be called before the application exit, or a memory leak will be casued.
-- @function [parent=#SimpleAudioEngine] end
-- @param self
-- @return SimpleAudioEngine#SimpleAudioEngine self (return value: cc.SimpleAudioEngine)
--------------------------------
-- brief Get the shared Engine object,it will new one when first time be called
-- @function [parent=#SimpleAudioEngine] getInstance
-- @param self
-- @return SimpleAudioEngine#SimpleAudioEngine ret (return value: cc.SimpleAudioEngine)
return nil