cocos2d-x  3.0-rc0
 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
local acceptsFormat ( local format)

Static Public Member Functions

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

Protected Member Functions

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

Static Protected Member Functions

static void addDecoder (OpenALDecoder *decoder)
local addDecoder ( local decoder)

Static Protected Attributes

static std::vector
< OpenALDecoder * > 
_decoders
var _decoders
local _decoders

Member Enumeration Documentation

enum Format
Enumerator
Mp3 
Vorbis 
Wav 
Raw 
Flac 
Midi 
Aac 
var Format
Enumerator
Mp3 
Vorbis 
Wav 
Raw 
Flac 
Midi 
Aac 
local 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
var acceptsFormat ( var  format)
pure virtual
local acceptsFormat ( local  format)
pure virtual
static void addDecoder ( OpenALDecoder decoder)
staticprotected
var addDecoder ( var  decoder)
staticprotected
local addDecoder ( local  decoder)
staticprotected
virtual bool decode ( OpenALFile file,
ALuint &  result 
)
pure virtual

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

var decode ( var  file,
var  result 
)
pure virtual

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

local decode ( local  file,
local  result 
)
pure virtual

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

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

Member Data Documentation

std::vector<OpenALDecoder *>
_decoders
staticprotected
var _decoders
staticprotected
local _decoders
staticprotected

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