doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Enumerations | Variables
snd_local.h File Reference
#include <AL/al.h>
#include <AL/alc.h>
#include "../openal/include/efxlib.h"

Go to the source code of this file.

Classes

struct  waveformatex_s
 
struct  waveformat_s
 
struct  pcmwaveformat_s
 
struct  waveformatextensible_s
 
struct  mminfo_s
 
class  idWaveFile
 
class  idAudioHardware
 
class  idAudioBuffer
 
class  idSoundFade
 
class  SoundFX
 
class  SoundFX_Lowpass
 
class  SoundFX_LowpassFast
 
class  SoundFX_Comb
 
class  FracTime
 
class  idSlowChannel
 
class  idSoundChannel
 
class  idSoundEmitterLocal
 
class  s_stats
 
struct  soundPortalTrace_s
 
class  idSoundWorldLocal
 
struct  openalSource_t
 
class  idSoundSystemLocal
 
class  idSoundSample
 
class  idSampleDecoder
 
class  idSoundCache
 

Macros

#define ID_ALCHAR
 
#define mmioFOURCC(ch0, ch1, ch2, ch3)
 
#define fourcc_riff   mmioFOURCC('R', 'I', 'F', 'F')
 

Typedefs

typedef waveformatex_s waveformatex_t
 
typedef waveformat_s waveformat_t
 
typedef pcmwaveformat_s pcmwaveformat_t
 
typedef waveformatextensible_s waveformatextensible_t
 
typedef dword fourcc
 
typedef mminfo_s mminfo_t
 
typedef struct soundPortalTrace_s soundPortalTrace_t
 

Enumerations

enum  soundDemoCommand_t {
  SCMD_STATE, SCMD_PLACE_LISTENER, SCMD_ALLOC_EMITTER, SCMD_FREE,
  SCMD_UPDATE, SCMD_START, SCMD_MODIFY, SCMD_STOP,
  SCMD_FADE
}
 
enum  { WAVE_FORMAT_TAG_PCM = 1, WAVE_FORMAT_TAG_OGG = 2 }
 
enum  removeStatus_t { REMOVE_STATUS_INVALID = -1, REMOVE_STATUS_ALIVE = 0, REMOVE_STATUS_WAITSAMPLEFINISHED = 1, REMOVE_STATUS_SAMPLEFINISHED = 2 }
 
enum  { PLAYBACK_RESET, PLAYBACK_ADVANCING }
 

Variables

const int SOUND_MAX_CHANNELS = 8
 
const int SOUND_DECODER_FREE_DELAY = 1000 * MIXBUFFER_SAMPLES / USERCMD_MSEC
 
const int PRIMARYFREQ = 44100
 
const float SND_EPSILON = 1.0f / 32768.0f
 
const int ROOM_SLICES_IN_BUFFER = 10
 
struct waveformatex_s PACKED
 
idSoundSystemLocal soundSystemLocal
 
const int SCACHE_SIZE = MIXBUFFER_SAMPLES*20
 

Macro Definition Documentation

#define fourcc_riff   mmioFOURCC('R', 'I', 'F', 'F')

Definition at line 140 of file snd_local.h.

#define ID_ALCHAR

Definition at line 46 of file snd_local.h.

#define mmioFOURCC (   ch0,
  ch1,
  ch2,
  ch3 
)
Value:
( (dword)(byte)(ch0) | ( (dword)(byte)(ch1) << 8 ) | \
( (dword)(byte)(ch2) << 16 ) | ( (dword)(byte)(ch3) << 24 ) )
unsigned int dword
Definition: Lib.h:77
unsigned char byte
Definition: Lib.h:75

Definition at line 135 of file snd_local.h.

Typedef Documentation

typedef dword fourcc

Definition at line 156 of file snd_local.h.

typedef mminfo_s mminfo_t

Definition at line 166 of file snd_local.h.

Definition at line 132 of file snd_local.h.

Definition at line 118 of file snd_local.h.

Definition at line 107 of file snd_local.h.

Definition at line 154 of file snd_local.h.

Enumeration Type Documentation

anonymous enum
Enumerator
WAVE_FORMAT_TAG_PCM 
WAVE_FORMAT_TAG_OGG 

Definition at line 121 of file snd_local.h.

anonymous enum
Enumerator
PLAYBACK_RESET 
PLAYBACK_ADVANCING 

Definition at line 363 of file snd_local.h.

Enumerator
REMOVE_STATUS_INVALID 
REMOVE_STATUS_ALIVE 
REMOVE_STATUS_WAITSAMPLEFINISHED 
REMOVE_STATUS_SAMPLEFINISHED 

Definition at line 284 of file snd_local.h.

Enumerator
SCMD_STATE 
SCMD_PLACE_LISTENER 
SCMD_ALLOC_EMITTER 
SCMD_FREE 
SCMD_UPDATE 
SCMD_START 
SCMD_MODIFY 
SCMD_STOP 
SCMD_FADE 

Definition at line 51 of file snd_local.h.

Variable Documentation

struct mminfo_s PACKED
const int PRIMARYFREQ = 44100

Definition at line 67 of file snd_local.h.

const int ROOM_SLICES_IN_BUFFER = 10

Definition at line 70 of file snd_local.h.

const int SCACHE_SIZE = MIXBUFFER_SAMPLES*20

Definition at line 836 of file snd_local.h.

const float SND_EPSILON = 1.0f / 32768.0f

Definition at line 68 of file snd_local.h.

const int SOUND_DECODER_FREE_DELAY = 1000 * MIXBUFFER_SAMPLES / USERCMD_MSEC

Definition at line 65 of file snd_local.h.

const int SOUND_MAX_CHANNELS = 8

Definition at line 64 of file snd_local.h.

idSoundSystemLocal soundSystemLocal

Definition at line 91 of file snd_system.cpp.