OpenMW
Classes | Typedefs | Enumerations | Functions
MWSound Namespace Reference

Sound & music. More...

Classes

class  Audiere_Decoder
class  FFmpeg_Decoder
class  MpgSnd_Decoder
class  OpenAL_SoundStream
class  OpenAL_Sound
class  OpenAL_Sound3D
class  OpenAL_Output
class  Sound
struct  Sound_Decoder
class  Sound_Output
class  SoundManager

Typedefs

typedef boost::shared_ptr
< Sound_Decoder
DecoderPtr

Enumerations

enum  SampleType { SampleType_UInt8, SampleType_Int16, SampleType_Float32 }
enum  ChannelConfig {
  ChannelConfig_Mono, ChannelConfig_Stereo, ChannelConfig_Quad, ChannelConfig_5point1,
  ChannelConfig_7point1
}
enum  Environment { Env_Normal, Env_Underwater }

Functions

static void fail (const std::string &msg)
static void throwALCerror (ALCdevice *device)
static void throwALerror ()
static ALenum getALFormat (ChannelConfig chans, SampleType type)
static ALint getBufferSampleCount (ALuint buf)
const char * getSampleTypeName (SampleType type)
const char * getChannelConfigName (ChannelConfig config)
size_t framesToBytes (size_t frames, ChannelConfig config, SampleType type)
size_t bytesToFrames (size_t bytes, ChannelConfig config, SampleType type)

Detailed Description

Sound & music.


Typedef Documentation

typedef boost::shared_ptr<Sound_Decoder> MWSound::DecoderPtr

Enumeration Type Documentation

Enumerator:
ChannelConfig_Mono 
ChannelConfig_Stereo 
ChannelConfig_Quad 
ChannelConfig_5point1 
ChannelConfig_7point1 
Enumerator:
Env_Normal 
Env_Underwater 
Enumerator:
SampleType_UInt8 
SampleType_Int16 
SampleType_Float32 

Function Documentation

size_t MWSound::bytesToFrames ( size_t  bytes,
ChannelConfig  config,
SampleType  type 
)
static void MWSound::fail ( const std::string &  msg) [static]
size_t MWSound::framesToBytes ( size_t  frames,
ChannelConfig  config,
SampleType  type 
)
static ALenum MWSound::getALFormat ( ChannelConfig  chans,
SampleType  type 
) [static]
static ALint MWSound::getBufferSampleCount ( ALuint  buf) [static]
const char * MWSound::getChannelConfigName ( ChannelConfig  config)
const char * MWSound::getSampleTypeName ( SampleType  type)
static void MWSound::throwALCerror ( ALCdevice *  device) [static]
static void MWSound::throwALerror ( ) [static]