cocos2d-x  3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OpenALDecoder Class Referenceabstract

#include <OpenALDecoder.h>

Public Types

enum  Format {
  Mp3 = 0, Vorbis, Wav, Raw,
  Flac, Midi, Aac
}
 

Public Member Functions

virtual ~OpenALDecoder ()
virtual bool decode (OpenALFile &file, ALuint &result)=0
 Returns true if such format is supported and decoding was successful. More...
 
virtual bool acceptsFormat (Format format) const =0

Static Public Member Functions

static const std::vector
< OpenALDecoder * > & 
getDecoders ()
static void installDecoders ()

Protected Member Functions

bool initALBuffer (ALuint &result, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq)

Static Protected Member Functions

static void addDecoder (OpenALDecoder *decoder)

Static Protected Attributes

static std::vector
< OpenALDecoder * > 
_decoders

Member Enumeration Documentation

enum Format
Enumerator
Mp3 
Vorbis 
Wav 
Raw 
Flac 
Midi 
Aac 

Constructor & Destructor Documentation

virtual ~OpenALDecoder ( )
inlinevirtual

Member Function Documentation

virtual bool acceptsFormat ( Format  format) const
pure virtual
static void addDecoder ( OpenALDecoder decoder)
staticprotected
virtual bool decode ( OpenALFile file,
ALuint &  result 
)
pure virtual

Returns true if such format is supported and decoding was successful.

static const std::vector
<OpenALDecoder *>& getDecoders
( )
static
bool initALBuffer ( ALuint &  result,
ALenum  format,
const ALvoid *  data,
ALsizei  size,
ALsizei  freq 
)
protected
static void installDecoders ( )
static

Member Data Documentation

std::vector<OpenALDecoder *>
_decoders
staticprotected

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