mirror of https://github.com/axmolengine/axmol.git
fixes compiler warnings
This commit is contained in:
parent
9f8ed96681
commit
50dcae4bef
|
@ -27,7 +27,7 @@ cmake_minimum_required(VERSION 2.8)
|
|||
project (Cocos2d-X)
|
||||
|
||||
# The version number
|
||||
set(COCOS2D_X_VERSION 3.3.0-beta0)
|
||||
set(COCOS2D_X_VERSION 3.3.0-rc1)
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
||||
include(CocosBuildHelpers)
|
||||
|
|
|
@ -107,8 +107,7 @@ public:
|
|||
*/
|
||||
void setAliasTexParameters();
|
||||
|
||||
private:
|
||||
|
||||
protected:
|
||||
void relaseTextures();
|
||||
std::unordered_map<ssize_t, Texture2D*> _atlasTextures;
|
||||
std::unordered_map<unsigned short, FontLetterDefinition> _fontLetterDefinitions;
|
||||
|
@ -122,7 +121,6 @@ private:
|
|||
float _currentPageOrigX;
|
||||
float _currentPageOrigY;
|
||||
float _letterPadding;
|
||||
bool _makeDistanceMap;
|
||||
|
||||
int _fontAscender;
|
||||
EventListenerCustom* _rendererRecreatedListener;
|
||||
|
|
|
@ -129,8 +129,8 @@ namespace cocos2d {
|
|||
|
||||
AudioEngineImpl::AudioEngineImpl()
|
||||
: _lazyInitLoop(true)
|
||||
, _currentAudioID(0)
|
||||
, _threadPool(nullptr)
|
||||
, _currentAudioID(0)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -340,7 +340,7 @@ bool AudioEngineImpl::stop(int audioID)
|
|||
}
|
||||
}
|
||||
|
||||
alSourcei(player._alSource, AL_BUFFER, NULL);
|
||||
alSourcei(player._alSource, AL_BUFFER, 0);
|
||||
|
||||
_alSourceUsed[player._alSource] = false;
|
||||
_audioPlayers.erase(audioID);
|
||||
|
@ -353,7 +353,7 @@ void AudioEngineImpl::stopAll()
|
|||
for(int index = 0; index < MAX_AUDIOINSTANCES; ++index)
|
||||
{
|
||||
alSourceStop(_alSources[index]);
|
||||
alSourcei(_alSources[index], AL_BUFFER, NULL);
|
||||
alSourcei(_alSources[index], AL_BUFFER, 0);
|
||||
_alSourceUsed[_alSources[index]] = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
float getTime() { return _currTime;}
|
||||
bool setLoop(bool loop);
|
||||
|
||||
private:
|
||||
protected:
|
||||
void rotateBufferThread(int offsetFrame);
|
||||
bool play2d(AudioCache* cache);
|
||||
|
||||
|
|
|
@ -37,8 +37,8 @@ using namespace cocos2d::experimental;
|
|||
|
||||
AudioPlayer::AudioPlayer()
|
||||
: _exitThread(false)
|
||||
, _timeDirty(false)
|
||||
, _streamingSource(false)
|
||||
, _timeDirty(false)
|
||||
, _currTime(0.0f)
|
||||
, _finishCallbak(nullptr)
|
||||
, _ready(false)
|
||||
|
|
|
@ -55,8 +55,8 @@ public:
|
|||
double minDelay;
|
||||
|
||||
AudioProfile()
|
||||
: minDelay(0.0)
|
||||
, maxInstances(0)
|
||||
: maxInstances(0)
|
||||
, minDelay(0.0)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ NS_CC_BEGIN
|
|||
|
||||
CC_DLL const char* cocos2dVersion()
|
||||
{
|
||||
return "cocos2d-x 3.3rc0";
|
||||
return "cocos2d-x 3.3rc1";
|
||||
}
|
||||
|
||||
NS_CC_END
|
||||
|
|
Loading…
Reference in New Issue