cocos2d-x  3.3rc0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AudioPlayer Class Reference

#include <AudioPlayer.h>

Public Member Functions

 AudioPlayer ()
 ~AudioPlayer ()
bool init (SLEngineItf engineEngine, SLObjectItf outputMixObject, const std::string &fileFullPath, float volume, bool loop)
var init ( var engineEngine, var outputMixObject, var fileFullPath, var volume, var loop)
local init ( local engineEngine, local outputMixObject, local fileFullPath, local volume, local loop)
 AudioPlayer ()
 ~AudioPlayer ()
 ~AudioPlayer ()
 ~AudioPlayer ()
bool setTime (float time)
local setTime ( local time)
float getTime ()
local getTime ()
bool setLoop (bool loop)
 AudioPlayer ()
 AudioPlayer ()
 AudioPlayer ()
 AudioPlayer (AudioPlayer &)
 AudioPlayer ()
 AudioPlayer ()
 ~AudioPlayer ()
bool setTime (float time)
local setTime ( local time)
float getTime ()
bool setLoop (bool loop)
local setLoop ( local loop)

Public Attributes

bool _playOver

Protected Member Functions

void rotateBufferThread (int offsetFrame)
bool play2d (AudioCache *cache)

Friends

class AudioEngineImpl

Constructor & Destructor Documentation

var AudioPlayer ( )
local AudioPlayer ( )
var ~AudioPlayer ( )
local ~AudioPlayer ( )
var AudioPlayer ( )
local AudioPlayer ( )
var ~AudioPlayer ( )
local ~AudioPlayer ( )
var AudioPlayer ( )
local AudioPlayer ( )
var AudioPlayer ( var  )
local AudioPlayer ( local  )
var ~AudioPlayer ( )
local ~AudioPlayer ( )

Member Function Documentation

float getTime ( )
inline
var getTime ( )
inline
local getTime ( )
inline
float getTime ( )
inline
var getTime ( )
inline
local getTime ( )
inline
bool init ( SLEngineItf  engineEngine,
SLObjectItf  outputMixObject,
const std::string &  fileFullPath,
float  volume,
bool  loop 
)
var init ( var  engineEngine,
var  outputMixObject,
var  fileFullPath,
var  volume,
var  loop 
)
local init ( local  engineEngine,
local  outputMixObject,
local  fileFullPath,
local  volume,
local  loop 
)
bool play2d ( AudioCache cache)
protected
var play2d ( var  cache)
protected
local play2d ( local  cache)
protected
void rotateBufferThread ( int  offsetFrame)
protected
var rotateBufferThread ( var  offsetFrame)
protected
local rotateBufferThread ( local  offsetFrame)
protected
bool setLoop ( bool  loop)
var setLoop ( var  loop)
local setLoop ( local  loop)
bool setLoop ( bool  loop)
var setLoop ( var  loop)
local setLoop ( local  loop)
bool setTime ( float  time)
var setTime ( var  time)
local setTime ( local  time)
bool setTime ( float  time)
var setTime ( var  time)
local setTime ( local  time)

Friends And Related Function Documentation

var AudioEngineImpl
friend
local AudioEngineImpl
friend

Member Data Documentation

bool _playOver
var _playOver
local _playOver

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