Sync with cocos2d-x v3 branch ddb4dc8 commit.

This commit is contained in:
James Chen
2017-04-24 10:49:02 +08:00
parent 91cfd45ee9
commit fc98b4bdc0
115 changed files with 5389 additions and 2620 deletions
+13 -6
View File
@@ -1,7 +1,7 @@
/****************************************************************************
Copyright (c) 2010 Steve Oldmeadow
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2013-2017 Chukong Technologies Inc.
http://www.cocos2d-x.org
@@ -62,6 +62,13 @@ public:
*/
static SimpleAudioEngine* getInstance();
/**
* @deprecated Use `getInstance` instead.
* @js NA
* @lua NA
*/
CC_DEPRECATED_ATTRIBUTE static SimpleAudioEngine* sharedEngine() { return SimpleAudioEngine::getInstance(); }
/**
* Release the shared Engine object.
*
@@ -78,10 +85,10 @@ public:
* @lua preloadMusic
*/
virtual void preloadBackgroundMusic(const char* filePath);
/**
* Play background music.
*
*
* @param filePath The path of the background music file,or the FileName of T_SoundResInfo.
* @param loop Whether the background music loop or not.
* @js playMusic
@@ -137,7 +144,7 @@ public:
*/
virtual bool isBackgroundMusicPlaying();
//
//
// properties
//
@@ -169,7 +176,7 @@ public:
*/
virtual void setEffectsVolume(float volume);
//
//
// for sound effects
/**
@@ -181,7 +188,7 @@ public:
* @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 sound 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 win32.