mirror of https://github.com/axmolengine/axmol.git
SimpleAudioEngine::getSharedSimpleAudioEngine -> getSharedEngine
This commit is contained in:
parent
4ec20bb873
commit
507ca57b0e
|
@ -63,7 +63,7 @@
|
|||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="WS2_32.Lib ..\..\PRJ_TG3\Common\SoftSupport\EosConfig.lib ..\..\PRJ_TG3\Common\SoftSupport\SoftSupport.lib ..\..\PRJ_TG3\Common\SoftSupport\TG3_DLL.lib libcocos2d.lib libCocosDenishion.lib"
|
||||
AdditionalDependencies="WS2_32.Lib ..\..\PRJ_TG3\Common\SoftSupport\EosConfig.lib ..\..\PRJ_TG3\Common\SoftSupport\SoftSupport.lib ..\..\PRJ_TG3\Common\SoftSupport\TG3_DLL.lib"
|
||||
OutputFile="$(OutDir)/Cocos2dSimpleGame.dll"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="../../PRJ_TG3/Common/ICU/lib;../../PRJ_TG3/Mtapi/Win32/lib;../../PRJ_TG3/LIB/Win32Lib;../../PRJ_TG3/Common/SoftSupport"
|
||||
|
|
|
@ -130,7 +130,7 @@ bool HelloWorld::init()
|
|||
this->schedule( schedule_selector(HelloWorld::update) );
|
||||
|
||||
// Start up the background music
|
||||
SimpleAudioEngine::getSharedSimpleAudioEngine()->playBackgroundMusic(SoundResInfo[0].FileName.c_str(), true);
|
||||
SimpleAudioEngine::getSharedEngine()->playBackgroundMusic(SoundResInfo[0].FileName.c_str(), true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -224,7 +224,7 @@ void HelloWorld::ccTouchesEnded(NSSet* touches, UIEvent* event)
|
|||
this->addChild(projectile);
|
||||
|
||||
// Play a sound!
|
||||
SimpleAudioEngine::getSharedSimpleAudioEngine()->playEffect(SoundResInfo[1].FileName.c_str());
|
||||
SimpleAudioEngine::getSharedEngine()->playEffect(SoundResInfo[1].FileName.c_str());
|
||||
|
||||
// Determine where we wish to shoot the projectile to
|
||||
float realX = winSize.width + (projectile->getContentSize().width / 2);
|
||||
|
@ -255,7 +255,7 @@ HelloWorld::HelloWorld()
|
|||
,_projectiles(NULL)
|
||||
,_projectilesDestroyed(0)
|
||||
{
|
||||
SimpleAudioEngine::getSharedSimpleAudioEngine()->preloadEffect(SoundResInfo[1].FileName.c_str());
|
||||
SimpleAudioEngine::getSharedEngine()->preloadEffect(SoundResInfo[1].FileName.c_str());
|
||||
}
|
||||
|
||||
// on "dealloc" you need to release all your retained objects
|
||||
|
|
|
@ -39,7 +39,7 @@ SimpleAudioEngine::~SimpleAudioEngine()
|
|||
removeAllEffectPlayers();
|
||||
}
|
||||
|
||||
SimpleAudioEngine* SimpleAudioEngine::getSharedSimpleAudioEngine()
|
||||
SimpleAudioEngine* SimpleAudioEngine::getSharedEngine()
|
||||
{
|
||||
return &s_SharedAudioEngie;
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ public:
|
|||
~SimpleAudioEngine();
|
||||
|
||||
// get the Engine object
|
||||
static SimpleAudioEngine* getSharedSimpleAudioEngine();
|
||||
static SimpleAudioEngine* getSharedEngine();
|
||||
|
||||
// set the sound ResInfo
|
||||
static void setSoundResInfo(const T_SoundResInfo ResInfo[], int nCount);
|
||||
|
|
|
@ -73,7 +73,7 @@ Boolean TMainForm::EventHandler(TApplication * pApp, EventType * pEvent)
|
|||
Boolean TMainForm::CtrlSelected(TApplication * pApp, EventType * pEvent)
|
||||
{
|
||||
Boolean bHandled = FALSE;
|
||||
SimpleAudioEngine* pAudioEngine = SimpleAudioEngine::getSharedSimpleAudioEngine();
|
||||
SimpleAudioEngine* pAudioEngine = SimpleAudioEngine::getSharedEngine();
|
||||
|
||||
switch (pEvent->sParam1)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue