-------------------------------- -- @module AudioEngine -- @parent_module ccexp -------------------------------- -- -- @function [parent=#AudioEngine] lazyInit -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- Sets the current playback position of an audio instance.
-- param audioID an audioID returned by the play2d function
-- return -- @function [parent=#AudioEngine] setCurrentTime -- @param self -- @param #int audioID -- @param #float time -- @return bool#bool ret (return value: bool) -------------------------------- -- Gets the volume value of an audio instance.
-- param audioID an audioID returned by the play2d function
-- return volume value (range from 0.0 to 1.0) -- @function [parent=#AudioEngine] getVolume -- @param self -- @param #int audioID -- @return float#float ret (return value: float) -------------------------------- -- Uncache the audio data from internal buffer.
-- AudioEngine cache audio data on ios platform
-- warning This can lead to stop related audio first.
-- param filePath The path of an audio file -- @function [parent=#AudioEngine] uncache -- @param self -- @param #string filePath -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -------------------------------- -- Resume all suspended audio instances -- @function [parent=#AudioEngine] resumeAll -- @param self -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -------------------------------- -- Stop all audio instances -- @function [parent=#AudioEngine] stopAll -- @param self -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -------------------------------- -- Pause an audio instance.
-- param audioID an audioID returned by the play2d function -- @function [parent=#AudioEngine] pause -- @param self -- @param #int audioID -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -------------------------------- -- Release related objects
-- warning It must be called before the application exit -- @function [parent=#AudioEngine] end -- @param self -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -------------------------------- -- -- @function [parent=#AudioEngine] getMaxAudioInstance -- @param self -- @return int#int ret (return value: int) -------------------------------- -- Gets the current playback position of an audio instance.
-- param audioID an audioID returned by the play2d function
-- return the current playback position of an audio instance -- @function [parent=#AudioEngine] getCurrentTime -- @param self -- @param #int audioID -- @return float#float ret (return value: float) -------------------------------- -- -- @function [parent=#AudioEngine] setMaxAudioInstance -- @param self -- @param #int maxInstances -- @return bool#bool ret (return value: bool) -------------------------------- -- Checks whether an audio instance is loop.
-- param audioID an audioID returned by the play2d function
-- return Whether or not an audio instance is loop. -- @function [parent=#AudioEngine] isLoop -- @param self -- @param #int audioID -- @return bool#bool ret (return value: bool) -------------------------------- -- Pause all playing audio instances -- @function [parent=#AudioEngine] pauseAll -- @param self -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -------------------------------- -- Uncache all audio data from internal buffer.
-- warning All audio will be stopped first.
-- param -- @function [parent=#AudioEngine] uncacheAll -- @param self -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -------------------------------- -- Sets volume for an audio instance.
-- param audioID an audioID returned by the play2d function
-- param volume volume value (range from 0.0 to 1.0) -- @function [parent=#AudioEngine] setVolume -- @param self -- @param #int audioID -- @param #float volume -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -------------------------------- -- Play 2d sound
-- param filePath The path of an audio file
-- param loop Whether audio instance loop or not
-- param volume volume value (range from 0.0 to 1.0)
-- param profile a profile for audio instance
-- return an audio ID. It allows you to dynamically change the behavior of an audio instance on the fly. -- @function [parent=#AudioEngine] play2d -- @param self -- @param #string filePath -- @param #bool loop -- @param #float volume -- @param #cc.experimental::AudioProfile profile -- @return int#int ret (return value: int) -------------------------------- -- Returns the state of an audio instance.
-- param audioID an audioID returned by the play2d function
-- return the status of an audio instance -- @function [parent=#AudioEngine] getState -- @param self -- @param #int audioID -- @return int#int ret (return value: int) -------------------------------- -- Resume an audio instance.
-- param audioID an audioID returned by the play2d function -- @function [parent=#AudioEngine] resume -- @param self -- @param #int audioID -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -------------------------------- -- Stop an audio instance.
-- param audioID an audioID returned by the play2d function -- @function [parent=#AudioEngine] stop -- @param self -- @param #int audioID -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -------------------------------- -- Gets the duration of an audio instance.
-- param audioID an audioID returned by the play2d function
-- return the duration of an audio instance -- @function [parent=#AudioEngine] getDuration -- @param self -- @param #int audioID -- @return float#float ret (return value: float) -------------------------------- -- Sets whether an audio instance loop or not.
-- param audioID an audioID returned by the play2d function
-- param loop Whether audio instance loop or not -- @function [parent=#AudioEngine] setLoop -- @param self -- @param #int audioID -- @param #bool loop -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -------------------------------- -- Gets the default profile of audio instances
-- return the default profile of audio instances -- @function [parent=#AudioEngine] getDefaultProfile -- @param self -- @return experimental::AudioProfile#experimental::AudioProfile ret (return value: cc.experimental::AudioProfile) -------------------------------- -- @overload self, string -- @overload self, int -- @function [parent=#AudioEngine] getProfile -- @param self -- @param #int audioID -- @return experimental::AudioProfile#experimental::AudioProfile ret (return value: cc.experimental::AudioProfile) return nil