#include <AudioPlayer.h>
Public Member Functions | |
AudioPlayer () | |
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 () | |
bool | setTime (float time) |
var | setTime ( var time) |
local | setTime ( local time) |
float | getTime () |
var | getTime () |
local | getTime () |
bool | setLoop (bool loop) |
var | setLoop ( var loop) |
local | setLoop ( local loop) |
AudioPlayer () | |
AudioPlayer (const AudioPlayer &) | |
AudioPlayer () | |
AudioPlayer () | |
~AudioPlayer () | |
bool | setTime (float time) |
local | setTime ( local time) |
float | getTime () |
bool | setLoop (bool loop) |
var | setLoop ( var loop) |
local | setLoop ( local loop) |
Public Attributes | |
bool | _playOver |
bool | _loop |
SLPlayItf | _fdPlayerPlay |
Protected Member Functions | |
void | rotateBufferThread (int offsetFrame) |
var | rotateBufferThread ( var offsetFrame) |
local | rotateBufferThread ( local offsetFrame) |
bool | play2d (AudioCache *cache) |
var | play2d ( var cache) |
local | play2d ( local cache) |
void | rotateBufferThread (int offsetFrame) |
var | rotateBufferThread ( var offsetFrame) |
local | rotateBufferThread ( local offsetFrame) |
bool | play2d (AudioCache *cache) |
Protected Attributes | |
AudioCache * | _audioCache |
var | _audioCache |
local | _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 | ( | ) |
var AudioPlayer | ( | ) |
local AudioPlayer | ( | ) |
~AudioPlayer | ( | ) |
var ~AudioPlayer | ( | ) |
local ~AudioPlayer | ( | ) |
AudioPlayer | ( | ) |
var AudioPlayer | ( | ) |
local AudioPlayer | ( | ) |
~AudioPlayer | ( | ) |
var ~AudioPlayer | ( | ) |
local ~AudioPlayer | ( | ) |
AudioPlayer | ( | ) |
var AudioPlayer | ( | ) |
local AudioPlayer | ( | ) |
AudioPlayer | ( | const AudioPlayer & | ) |
var AudioPlayer | ( | var | ) |
local AudioPlayer | ( | local | ) |
~AudioPlayer | ( | ) |
var ~AudioPlayer | ( | ) |
local ~AudioPlayer | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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 | ||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
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 | ) |
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
SLPlayItf _fdPlayerPlay |
var _fdPlayerPlay |
local _fdPlayerPlay |
|
protected |
|
protected |
|
protected |
bool _loop |
var _loop |
local _loop |
bool _playOver |
var _playOver |
local _playOver |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |