cocos2d-x
3.3
|
#include <AudioEngine-win32.h>
Public Member Functions | |
AudioEngineImpl () | |
~AudioEngineImpl () | |
bool | init () |
int | play2d (const std::string &fileFullPath, bool loop, float volume) |
void | setVolume (int audioID, float volume) |
void | setLoop (int audioID, bool loop) |
void | pause (int audioID) |
void | resume (int audioID) |
void | stop (int audioID) |
void | stopAll () |
float | getDuration (int audioID) |
float | getCurrentTime (int audioID) |
bool | setCurrentTime (int audioID, float time) |
void | setFinishCallback (int audioID, const std::function< void(int, const std::string &)> &callback) |
void | uncache (const std::string &filePath) |
void | uncacheAll () |
void | update (float dt) |
AudioEngineImpl () | |
~AudioEngineImpl () | |
bool | init () |
int | play2d (const std::string &fileFullPath, bool loop, float volume) |
void | setVolume (int audioID, float volume) |
void | setLoop (int audioID, bool loop) |
bool | pause (int audioID) |
bool | resume (int audioID) |
bool | stop (int audioID) |
void | stopAll () |
float | getDuration (int audioID) |
float | getCurrentTime (int audioID) |
bool | setCurrentTime (int audioID, float time) |
void | setFinishCallback (int audioID, const std::function< void(int, const std::string &)> &callback) |
void | uncache (const std::string &filePath) |
void | uncacheAll () |
void | update (float dt) |
AudioEngineImpl () | |
~AudioEngineImpl () | |
bool | init () |
int | play2d (const std::string &fileFullPath, bool loop, float volume) |
void | setVolume (int audioID, float volume) |
void | setLoop (int audioID, bool loop) |
bool | pause (int audioID) |
bool | resume (int audioID) |
bool | stop (int audioID) |
void | stopAll () |
float | getDuration (int audioID) |
float | getCurrentTime (int audioID) |
bool | setCurrentTime (int audioID, float time) |
void | setFinishCallback (int audioID, const std::function< void(int, const std::string &)> &callback) |
void | uncache (const std::string &filePath) |
void | uncacheAll () |
void | update (float dt) |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
NA NA More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Ref | |
Ref () | |
Constructor. More... | |
Protected Attributes inherited from Ref | |
unsigned int | _referenceCount |
count of references More... | |
AudioEngineImpl | ( | ) |
~AudioEngineImpl | ( | ) |
AudioEngineImpl | ( | ) |
~AudioEngineImpl | ( | ) |
AudioEngineImpl | ( | ) |
~AudioEngineImpl | ( | ) |
float getCurrentTime | ( | int | audioID | ) |
float getCurrentTime | ( | int | audioID | ) |
float getCurrentTime | ( | int | audioID | ) |
float getDuration | ( | int | audioID | ) |
float getDuration | ( | int | audioID | ) |
float getDuration | ( | int | audioID | ) |
bool init | ( | ) |
bool init | ( | ) |
bool init | ( | ) |
bool pause | ( | int | audioID | ) |
bool pause | ( | int | audioID | ) |
void pause | ( | int | audioID | ) |
int play2d | ( | const std::string & | fileFullPath, |
bool | loop, | ||
float | volume | ||
) |
int play2d | ( | const std::string & | fileFullPath, |
bool | loop, | ||
float | volume | ||
) |
int play2d | ( | const std::string & | fileFullPath, |
bool | loop, | ||
float | volume | ||
) |
bool resume | ( | int | audioID | ) |
bool resume | ( | int | audioID | ) |
void resume | ( | int | audioID | ) |
bool setCurrentTime | ( | int | audioID, |
float | time | ||
) |
bool setCurrentTime | ( | int | audioID, |
float | time | ||
) |
bool setCurrentTime | ( | int | audioID, |
float | time | ||
) |
void setFinishCallback | ( | int | audioID, |
const std::function< void(int, const std::string &)> & | callback | ||
) |
void setFinishCallback | ( | int | audioID, |
const std::function< void(int, const std::string &)> & | callback | ||
) |
void setFinishCallback | ( | int | audioID, |
const std::function< void(int, const std::string &)> & | callback | ||
) |
void setLoop | ( | int | audioID, |
bool | loop | ||
) |
void setLoop | ( | int | audioID, |
bool | loop | ||
) |
void setLoop | ( | int | audioID, |
bool | loop | ||
) |
void setVolume | ( | int | audioID, |
float | volume | ||
) |
void setVolume | ( | int | audioID, |
float | volume | ||
) |
void setVolume | ( | int | audioID, |
float | volume | ||
) |
bool stop | ( | int | audioID | ) |
bool stop | ( | int | audioID | ) |
void stop | ( | int | audioID | ) |
void stopAll | ( | ) |
void stopAll | ( | ) |
void stopAll | ( | ) |
void uncache | ( | const std::string & | filePath | ) |
void uncache | ( | const std::string & | filePath | ) |
|
inline |
void uncacheAll | ( | ) |
void uncacheAll | ( | ) |
|
inline |
void update | ( | float | dt | ) |
void update | ( | float | dt | ) |
void update | ( | float | dt | ) |