PuzzleSDK
AudioEngineTestDemo类 参考

#include <NewAudioEngineTest.h>

+ 类 AudioEngineTestDemo 继承关系图:
+ AudioEngineTestDemo 的协作图:

Public 成员函数

 AudioEngineTestDemo ()
 
virtual std::string title () const override
 
virtual void onExit () override
 
virtual void onBackCallback (cocos2d::Ref *sender) override
 
- Public 成员函数 继承自 TestCase
 TestCase ()
 
 ~TestCase ()
 
virtual std::string subtitle () const
 
virtual Type getTestType () const
 
virtual float getDuration () const
 
virtual std::string getExpectedOutput () const
 
virtual std::string getActualOutput () const
 
virtual void restartTestCallback (cocos2d::Ref *sender)
 
virtual void nextTestCallback (cocos2d::Ref *sender)
 
virtual void priorTestCallback (cocos2d::Ref *sender)
 
void setTestSuite (TestSuite *testSuite)
 
TestSuitegetTestSuite () const
 
float getRunTime () const
 
void setTestCaseName (const std::string &name)
 
std::string getTestCaseName () const
 
const cocos2d::Label * getSubtitleLable () const
 
const cocos2d::MenuItemImage * getRestartTestItem () const
 
virtual void onEnter () override
 

Protected 属性

std::shared_ptr< bool > _isDestroyed
 
- Protected 属性 继承自 TestCase
cocos2d::MenuItemImage * _priorTestItem
 
cocos2d::MenuItemImage * _restartTestItem
 
cocos2d::MenuItemImage * _nextTestItem
 
cocos2d::Label * _titleLabel
 
cocos2d::Label * _subtitleLabel
 

额外继承的成员函数

- Public 类型 继承自 TestCase
enum class  Type { ROBUSTNESS , UNIT , GRAPHICAL_STATIC , MANUAL }
 
- Public 属性 继承自 TestCase
CC_CONSTRUCTOR_ACCESS __pad0__: virtual bool init() override
 

详细描述

在文件 NewAudioEngineTest.h38 行定义.

构造及析构函数说明

◆ AudioEngineTestDemo()

AudioEngineTestDemo::AudioEngineTestDemo ( )

在文件 NewAudioEngineTest.cpp195 行定义.

196: _isDestroyed(std::make_shared<bool>(false))
197{
198}
std::shared_ptr< bool > _isDestroyed

成员函数说明

◆ onBackCallback()

void AudioEngineTestDemo::onBackCallback ( cocos2d::Ref *  sender)
overridevirtual

重载 TestCase .

在文件 NewAudioEngineTest.cpp212 行定义.

213{
214 AudioEngine::end();
216}
virtual void onBackCallback(cocos2d::Ref *sender)
Definition: BaseTest.cpp:481

引用了 TestCase::onBackCallback().

+ 函数调用图:

◆ onExit()

void AudioEngineTestDemo::onExit ( )
overridevirtual

AudioPlayFileInWritablePath, AudioPlayInFinishedCB , 以及 AudioUncacheInFinishedCB 重载.

在文件 NewAudioEngineTest.cpp200 行定义.

201{
202 *_isDestroyed = true;
203 AudioEngine::uncacheAll();
204 TestCase::onExit();
205}

引用了 _isDestroyed.

被这些函数引用 AudioPlayFileInWritablePath::onExit(), AudioPlayInFinishedCB::onExit() , 以及 AudioUncacheInFinishedCB::onExit().

+ 这是这个函数的调用关系图:

◆ title()

类成员变量说明

◆ _isDestroyed

std::shared_ptr<bool> AudioEngineTestDemo::_isDestroyed
protected

在文件 NewAudioEngineTest.h49 行定义.

被这些函数引用 AudioLoadTest::init() , 以及 onExit().


该类的文档由以下文件生成: