|
cocos2d-x
3.3
|
#include <AudioPlayer.h>
Public Member Functions | |
| AudioPlayer () | |
| ~AudioPlayer () | |
| bool | init (SLEngineItf engineEngine, SLObjectItf outputMixObject, const std::string &fileFullPath, float volume, bool loop) |
| AudioPlayer () | |
| ~AudioPlayer () | |
| bool | setTime (float time) |
| float | getTime () |
| bool | setLoop (bool loop) |
| AudioPlayer () | |
| AudioPlayer (const AudioPlayer &) | |
| ~AudioPlayer () | |
| bool | setTime (float time) |
| float | getTime () |
| bool | setLoop (bool loop) |
Public Attributes | |
| bool | _playOver |
| bool | _loop |
| SLPlayItf | _fdPlayerPlay |
Protected Member Functions | |
| void | rotateBufferThread (int offsetFrame) |
| bool | play2d (AudioCache *cache) |
| void | rotateBufferThread (int offsetFrame) |
| bool | play2d (AudioCache *cache) |
Protected Attributes | |
| AudioCache * | _audioCache |
| float | _volume |
| std::function< void(int, const std::string &)> | _finishCallbak |
| bool | _ready |
| ALuint | _alSource |
| float | _currTime |
| bool | _streamingSource |
| ALuint | _bufferIds [3] |
| std::thread | _rotateBufferThread |
| std::condition_variable | _sleepCondition |
| std::mutex | _sleepMutex |
| bool | _exitThread |
| bool | _timeDirty |
Friends | |
| class | AudioEngineImpl |
| AudioPlayer | ( | ) |
| ~AudioPlayer | ( | ) |
| AudioPlayer | ( | ) |
| ~AudioPlayer | ( | ) |
| AudioPlayer | ( | ) |
| AudioPlayer | ( | const AudioPlayer & | ) |
| ~AudioPlayer | ( | ) |
|
inline |
|
inline |
| bool init | ( | SLEngineItf | engineEngine, |
| SLObjectItf | outputMixObject, | ||
| const std::string & | fileFullPath, | ||
| float | volume, | ||
| bool | loop | ||
| ) |
|
protected |
|
protected |
|
protected |
|
protected |
| bool setLoop | ( | bool | loop | ) |
| bool setLoop | ( | bool | loop | ) |
| bool setTime | ( | float | time | ) |
| bool setTime | ( | float | time | ) |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| SLPlayItf _fdPlayerPlay |
|
protected |
| bool _loop |
| bool _playOver |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |