src/soundutil.cpp File Reference

#include <vector>
#include <alc.h>
#include "Exception.h"
#include "config.h"
#include "OggFile.h"
#include "soundutil.h"

Include dependency graph for soundutil.cpp:

Go to the source code of this file.

Namespaces

namespace  pcce

Functions

void pcce::InitializeAL ()
 Initialize OpenAL.
void pcce::ShutdownAL ()
 Shutdown OpenAL.
ALuint pcce::LoadOgg (const std::string &fileName)
 Load an ogg file into buffer.
static unsigned short pcce::readByte16 (const unsigned char buffer[2])
static unsigned long pcce::readByte32 (const unsigned char buffer[4])
ALuint pcce::LoadWav (const std::string &fileName)
 Load a wave file into buffer.
ALuint pcce::GenSource ()
ALuint pcce::GenSource (ALuint buffer)
void pcce::ClearALError ()
const std::string & pcce::GetALErrorStr (const ALenum error)

Variables

const string ALNoErrorStr = "No AL error occurred"
const string ALInvalidNameStr = "AL error: a bad name (ID) was passed to an OpenAL function"
const string ALInvalidEnumStr = "AL error: an invalid enum value was passed to an OpenAL function"
const string ALInvalidValueStr = "AL error: an invalid value was passed to an OpenAL function"
const string ALInvalidOpStr = "AL error: the requested operation is not valid"
const string ALOutOfMemoryStr = "AL error: the requested operation resulted in OpenAL running out of memory"
const string ALOtherErrorStr = "AL error: unknown error"


Variable Documentation

const string ALInvalidEnumStr = "AL error: an invalid enum value was passed to an OpenAL function" [static]

Definition at line 44 of file soundutil.cpp.

Referenced by pcce::GetALErrorStr().

const string ALInvalidNameStr = "AL error: a bad name (ID) was passed to an OpenAL function" [static]

Definition at line 43 of file soundutil.cpp.

Referenced by pcce::GetALErrorStr().

const string ALInvalidOpStr = "AL error: the requested operation is not valid" [static]

Definition at line 46 of file soundutil.cpp.

Referenced by pcce::GetALErrorStr().

const string ALInvalidValueStr = "AL error: an invalid value was passed to an OpenAL function" [static]

Definition at line 45 of file soundutil.cpp.

Referenced by pcce::GetALErrorStr().

const string ALNoErrorStr = "No AL error occurred" [static]

Definition at line 42 of file soundutil.cpp.

Referenced by pcce::GetALErrorStr().

const string ALOtherErrorStr = "AL error: unknown error" [static]

Definition at line 48 of file soundutil.cpp.

Referenced by pcce::GetALErrorStr().

const string ALOutOfMemoryStr = "AL error: the requested operation resulted in OpenAL running out of memory" [static]

Definition at line 47 of file soundutil.cpp.

Referenced by pcce::GetALErrorStr().


Generated on Thu Mar 6 11:39:25 2008 for Protocce by  doxygen 1.5.5