音效引擎

mac2022-06-30  38

#include "SimpleAudioEngine.h"   音效引擎是一个单例类: SimpleAudioEngine::sharedEngine();

 

  进入游戏场景前需要预加载音乐和音效 1 void preloadEffect(const char* pszFilePath); 2 void preloadBackgroundMusic(const char* pazFilePath);

 

  1 void rewindBackgroundMusic(); 重放背景音乐; 2 bool isBackgroundMusicPlaying(); 是否正在播放背景音乐; 3 void unloadEffect(const char* pszFilePath); 卸载;

 

  1 void end(); 当不在使用音频引擎时,调用此方法来释放SimpleAudioEngine所占用的资源。

 

转载于:https://www.cnblogs.com/Blogs-young-chan/p/5223479.html

相关资源:FMODAPI375win音效引擎
最新回复(0)