Classes | Namespaces | Defines | Typedefs

AudioConvert File Reference

#include "openalpp/Export"
#include <AL/al.h>
#include <stdlib.h>
#include <string.h>
#include "openalpp/Error"

Classes

class  openalpp::AudioConvert
struct  openalpp::_acAudioCVT
struct  openalpp::Chunk
struct  openalpp::MS_ADPCM_decodestate_FULL
struct  openalpp::WaveFMT
struct  openalpp::IMA_ADPCM_decodestate_s
struct  openalpp::IMA_ADPCM_decoder

Namespaces

namespace  openalpp
 

C++ wrapper for OpenAL with additional functionality of handling ogg-vorbis as streams.


Defines

#define AUDIO_U8   0x0008
#define AUDIO_S8   0x8008
#define AUDIO_U16LSB   0x0010
#define AUDIO_S16LSB   0x8010
#define AUDIO_U16MSB   0x1010
#define AUDIO_S16MSB   0x9010
#define AUDIO_U16   AUDIO_U16LSB
#define AUDIO_S16   AUDIO_S16LSB
#define swap16le(x)   (x)
#define swap32le(x)   (x)
#define swap16be(x)   swap16(x)
#define swap32be(x)   swap32(x)
#define _al_ALCHANNELS(fmt)   ((fmt==AL_FORMAT_MONO16||fmt==AL_FORMAT_MONO8)?1:2)
#define DATA   0x61746164
#define FACT   0x74636166
#define LIST   0x5453494c
#define RIFF   0x46464952
#define WAVE   0x45564157
#define FMT   0x20746D66
#define AL_FORMAT_IMA_ADPCM_MONO16_EXT   0x10000
#define AL_FORMAT_IMA_ADPCM_STEREO16_EXT   0x10001
#define AL_FORMAT_WAVE_EXT   0x10002
#define NELEMS(x)   ((sizeof x) / (sizeof *x))
#define PCM_CODE   0x0001
#define MS_ADPCM_CODE   0x0002
#define IMA_ADPCM_CODE   0x0011
#define MS_ADPCM_max   ((1<<(16-1))-1)
#define MS_ADPCM_min   -(1<<(16-1))

Typedefs

typedef struct
openalpp::_acAudioCVT 
openalpp::acAudioCVT
typedef struct openalpp::Chunk openalpp::Chunk
typedef struct openalpp::WaveFMT openalpp::alWaveFMT_LOKI
typedef struct
openalpp::IMA_ADPCM_decodestate_s 
openalpp::alIMAADPCM_decodestate_LOKI
typedef struct
openalpp::IMA_ADPCM_decoder 
openalpp::alIMAADPCM_state_LOKI

Define Documentation

#define _al_ALCHANNELS (   fmt  )     ((fmt==AL_FORMAT_MONO16||fmt==AL_FORMAT_MONO8)?1:2)
#define AL_FORMAT_IMA_ADPCM_MONO16_EXT   0x10000
#define AL_FORMAT_IMA_ADPCM_STEREO16_EXT   0x10001
#define AL_FORMAT_WAVE_EXT   0x10002
#define AUDIO_S16   AUDIO_S16LSB
#define AUDIO_S16LSB   0x8010
#define AUDIO_S16MSB   0x9010
#define AUDIO_S8   0x8008
#define AUDIO_U16   AUDIO_U16LSB
#define AUDIO_U16LSB   0x0010
#define AUDIO_U16MSB   0x1010
#define AUDIO_U8   0x0008
#define DATA   0x61746164
#define FACT   0x74636166
#define FMT   0x20746D66
#define IMA_ADPCM_CODE   0x0011
#define LIST   0x5453494c
#define MS_ADPCM_CODE   0x0002
#define MS_ADPCM_max   ((1<<(16-1))-1)
#define MS_ADPCM_min   -(1<<(16-1))
#define NELEMS (   x  )     ((sizeof x) / (sizeof *x))
#define PCM_CODE   0x0001
#define RIFF   0x46464952
#define swap16be (   x  )     swap16(x)
#define swap16le (   x  )     (x)
#define swap32be (   x  )     swap32(x)
#define swap32le (   x  )     (x)
#define WAVE   0x45564157