cocos2d-x  3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AudioEngineImpl Class Reference

#include <AudioEngine-win32.h>

Inheritance diagram for AudioEngineImpl:
Ref Ref Ref

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...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
var _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Constructor & Destructor Documentation

Member Function Documentation

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)
void uncache ( const std::string &  filePath)
inline
void uncacheAll ( )
void uncacheAll ( )
void uncacheAll ( )
inline
void update ( float  dt)
void update ( float  dt)
void update ( float  dt)

The documentation for this class was generated from the following files: