OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions
MWSound Namespace Reference

Sound & music. More...

Classes

class  FFmpeg_Decoder
 
class  Sound_Loudness
 
class  MWSoundDecoderBridge
 
class  MovieAudioDecoder
 
class  MovieAudioFactory
 
class  OpenAL_SoundStream
 
class  OpenAL_Output
 
class  SoundBase
 
class  Sound
 
class  Stream
 
class  Sound_Buffer
 
struct  Sound_Decoder
 
class  Sound_Output
 
class  SoundManager
 

Typedefs

typedef std::shared_ptr
< Sound_Decoder
DecoderPtr
 
typedef void * Sound_Handle
 
typedef void * Sound_Instance
 

Enumerations

enum  PlayMode {
  PlayMode::Normal = 0, PlayMode::Loop = 1<<0, PlayMode::NoEnv = 1<<1, PlayMode::RemoveAtDistance = 1<<2,
  PlayMode::NoPlayerLocal = 1<<3, PlayMode::LoopNoEnv = Loop | NoEnv, PlayMode::LoopRemoveAtDistance = Loop | RemoveAtDistance
}
 
enum  Type {
  Type::Sfx = 1<<4, Type::Voice = 1<<5, Type::Foot = 1<<6, Type::Music = 1<<7,
  Type::Movie = 1<<8, Type::Mask = Sfx | Voice | Foot | Music | Movie
}
 
enum  SampleType { SampleType_UInt8, SampleType_Int16, SampleType_Float32 }
 
enum  ChannelConfig {
  ChannelConfig_Mono, ChannelConfig_Stereo, ChannelConfig_Quad, ChannelConfig_5point1,
  ChannelConfig_7point1
}
 
enum  HrtfMode { HrtfMode::Disable, HrtfMode::Enable, HrtfMode::Auto }
 
enum  Environment { Env_Normal, Env_Underwater }
 
enum  PlayModeEx { Play_2D = 0, Play_3D = 1<<31 }
 

Functions

int operator~ (Type a)
 
int operator& (Type a, Type b)
 
int operator& (int a, Type b)
 
int operator| (Type a, Type b)
 
static ALenum getALFormat (ChannelConfig chans, SampleType type)
 
int operator& (int a, PlayMode b)
 
int operator& (PlayMode a, PlayMode b)
 
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)
 
int operator| (PlayMode a, Type b)
 

Detailed Description

Sound & music.

Typedef Documentation

typedef std::shared_ptr<Sound_Decoder> MWSound::DecoderPtr
typedef void* MWSound::Sound_Handle
typedef void* MWSound::Sound_Instance

Enumeration Type Documentation

Enumerator
ChannelConfig_Mono 
ChannelConfig_Stereo 
ChannelConfig_Quad 
ChannelConfig_5point1 
ChannelConfig_7point1 
Enumerator
Env_Normal 
Env_Underwater 
enum MWSound::HrtfMode
strong
Enumerator
Disable 
Enable 
Auto 
enum MWSound::PlayMode
strong
Enumerator
Normal 
Loop 
NoEnv 
RemoveAtDistance 
NoPlayerLocal 
LoopNoEnv 
LoopRemoveAtDistance 
Enumerator
Play_2D 
Play_3D 
Enumerator
SampleType_UInt8 
SampleType_Int16 
SampleType_Float32 
enum MWSound::Type
strong
Enumerator
Sfx 
Voice 
Foot 
Music 
Movie 
Mask 

Function Documentation

size_t MWSound::bytesToFrames ( size_t  bytes,
ChannelConfig  config,
SampleType  type 
)

Here is the call graph for this function:

Here is the caller graph for this function:

size_t MWSound::framesToBytes ( size_t  frames,
ChannelConfig  config,
SampleType  type 
)

Here is the caller graph for this function:

static ALenum MWSound::getALFormat ( ChannelConfig  chans,
SampleType  type 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

const char * MWSound::getChannelConfigName ( ChannelConfig  config)

Here is the caller graph for this function:

const char * MWSound::getSampleTypeName ( SampleType  type)

Here is the caller graph for this function:

int MWSound::operator& ( int  a,
PlayMode  b 
)
inline
int MWSound::operator& ( PlayMode  a,
PlayMode  b 
)
inline
int MWSound::operator& ( Type  a,
Type  b 
)
inline
int MWSound::operator& ( int  a,
Type  b 
)
inline
int MWSound::operator| ( PlayMode  a,
Type  b 
)
inline
int MWSound::operator| ( Type  a,
Type  b 
)
inline
int MWSound::operator~ ( Type  a)
inline