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

#include <AudioCache.h>

Public Types

enum  FileFormat { UNKNOWN, OGG, MP3 }
 

Public Member Functions

 AudioCache ()
 ~AudioCache ()
 ~AudioCache ()
 ~AudioCache ()
void addCallbacks (const std::function< void()> &callback)
local addCallbacks ( local callback)
 AudioCache ()
 AudioCache (const AudioCache &)
 AudioCache ()
 AudioCache ()
 ~AudioCache ()
 ~AudioCache ()
 ~AudioCache ()
void addCallbacks (const std::function< void()> &callback)
var addCallbacks ( var callback)
local addCallbacks ( local callback)

Protected Member Functions

void readDataTask ()
var readDataTask ()
local readDataTask ()
void invokingCallbacks ()
var invokingCallbacks ()
local invokingCallbacks ()
void readDataTask ()
void invokingCallbacks ()
var invokingCallbacks ()
local invokingCallbacks ()

Protected Attributes

ALsizei _dataSize
ALenum _format
var _format
local _format
ALsizei _sampleRate
float _duration
var _duration
local _duration
int _bytesPerFrame
AudioStreamBasicDescription outputFormat
var outputFormat
local outputFormat
ALuint _alBufferId
var _alBufferId
local _alBufferId
char * _pcmData
var _pcmData
local _pcmData
SInt64 _bytesOfRead
char * _queBuffers [QUEUEBUFFER_NUM]
var _queBuffers ()
local _queBuffers ()
ALsizei _queBufferSize [QUEUEBUFFER_NUM]
var _queBufferSize ()
local _queBufferSize ()
UInt32 _queBufferFrames
var _queBufferFrames
local _queBufferFrames
UInt32 _queBufferBytes
var _queBufferBytes
local _queBufferBytes
bool _alBufferReady
var _alBufferReady
local _alBufferReady
std::mutex _callbackMutex
var _callbackMutex
local _callbackMutex
std::vector< std::function
< void()> > 
_callbacks
var _callbacks
local _callbacks
std::mutex _readDataTaskMutex
var _readDataTaskMutex
local _readDataTaskMutex
bool _exitReadDataTask
var _exitReadDataTask
local _exitReadDataTask
std::string _fileFullPath
var _fileFullPath
local _fileFullPath
FileFormat _fileFormat
local _fileFormat
size_t _pcmDataSize
var _pcmDataSize
local _pcmDataSize
ALenum _alBufferFormat
var _alBufferFormat
local _alBufferFormat
int _channels
var _channels
local _channels
ALuint _sampleRate
var _sampleRate
local _sampleRate
size_t _bytesPerFrame
var _bytesPerFrame
local _bytesPerFrame
void * _pcmData
var _pcmData
local _pcmData
size_t _bytesOfRead
var _bytesOfRead
local _bytesOfRead
int _queBufferFrames
var _queBufferFrames
local _queBufferFrames
int _queBufferBytes
var _queBufferBytes
local _queBufferBytes
int _mp3Encoding

Friends

class AudioEngineImpl
class AudioPlayer

Member Enumeration Documentation

enum FileFormat
strong
Enumerator
UNKNOWN 
OGG 
MP3 
var FileFormat
strong
Enumerator
UNKNOWN 
OGG 
MP3 
local FileFormat
strong
Enumerator
UNKNOWN 
OGG 
MP3 

Constructor & Destructor Documentation

var AudioCache ( )
local AudioCache ( )
~AudioCache ( )
var ~AudioCache ( )
local ~AudioCache ( )
AudioCache ( const AudioCache )
var AudioCache ( var  )
local AudioCache ( local  )
~AudioCache ( )
var ~AudioCache ( )
local ~AudioCache ( )

Member Function Documentation

void addCallbacks ( const std::function< void()> &  callback)
var addCallbacks ( var  callback)
local addCallbacks ( local  callback)
void addCallbacks ( const std::function< void()> &  callback)
var addCallbacks ( var  callback)
local addCallbacks ( local  callback)
void invokingCallbacks ( )
protected
var invokingCallbacks ( )
protected
local invokingCallbacks ( )
protected
void invokingCallbacks ( )
protected
var invokingCallbacks ( )
protected
local invokingCallbacks ( )
protected
void readDataTask ( )
protected
var readDataTask ( )
protected
local readDataTask ( )
protected
void readDataTask ( )
protected
var readDataTask ( )
protected
local readDataTask ( )
protected

Friends And Related Function Documentation

var AudioEngineImpl
friend
local AudioEngineImpl
friend
AudioPlayer
friend
var AudioPlayer
friend
local AudioPlayer
friend

Member Data Documentation

ALenum _alBufferFormat
protected
var _alBufferFormat
protected
local _alBufferFormat
protected
ALuint _alBufferId
protected
var _alBufferId
protected
local _alBufferId
protected
bool _alBufferReady
protected
var _alBufferReady
protected
local _alBufferReady
protected
SInt64 _bytesOfRead
protected
var _bytesOfRead
protected
local _bytesOfRead
protected
size_t _bytesOfRead
protected
var _bytesOfRead
protected
local _bytesOfRead
protected
int _bytesPerFrame
protected
var _bytesPerFrame
protected
local _bytesPerFrame
protected
size_t _bytesPerFrame
protected
var _bytesPerFrame
protected
local _bytesPerFrame
protected
std::mutex _callbackMutex
protected
var _callbackMutex
protected
local _callbackMutex
protected
std::vector< std::function
< void()> > _callbacks
protected
var _callbacks
protected
local _callbacks
protected
int _channels
protected
var _channels
protected
local _channels
protected
ALsizei _dataSize
protected
var _dataSize
protected
local _dataSize
protected
float _duration
protected
var _duration
protected
local _duration
protected
bool _exitReadDataTask
protected
var _exitReadDataTask
protected
local _exitReadDataTask
protected
FileFormat _fileFormat
protected
var _fileFormat
protected
local _fileFormat
protected
std::string _fileFullPath
protected
var _fileFullPath
protected
local _fileFullPath
protected
ALenum _format
protected
var _format
protected
local _format
protected
int _mp3Encoding
protected
var _mp3Encoding
protected
local _mp3Encoding
protected
char* _pcmData
protected
var _pcmData
protected
local _pcmData
protected
void* _pcmData
protected
var _pcmData
protected
local _pcmData
protected
size_t _pcmDataSize
protected
var _pcmDataSize
protected
local _pcmDataSize
protected
UInt32 _queBufferBytes
protected
var _queBufferBytes
protected
local _queBufferBytes
protected
int _queBufferBytes
protected
var _queBufferBytes
protected
local _queBufferBytes
protected
UInt32 _queBufferFrames
protected
var _queBufferFrames
protected
local _queBufferFrames
protected
int _queBufferFrames
protected
var _queBufferFrames
protected
local _queBufferFrames
protected
char * _queBuffers
protected
var _queBuffers
protected
local _queBuffers
protected
ALsizei _queBufferSize
protected
var _queBufferSize
protected
local _queBufferSize
protected
std::mutex _readDataTaskMutex
protected
var _readDataTaskMutex
protected
local _readDataTaskMutex
protected
ALsizei _sampleRate
protected
var _sampleRate
protected
local _sampleRate
protected
ALuint _sampleRate
protected
var _sampleRate
protected
local _sampleRate
protected
AudioStreamBasicDescription
outputFormat
protected
var outputFormat
protected
local outputFormat
protected

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