doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
idSoundSystemLocal Class Reference

#include <snd_local.h>

Inheritance diagram for idSoundSystemLocal:
idSoundSystem

Public Member Functions

 idSoundSystemLocal ()
 
virtual void Init (void)
 
virtual void Shutdown (void)
 
virtual void ClearBuffer (void)
 
virtual bool ShutdownHW (void)
 
virtual bool InitHW (void)
 
virtual int AsyncUpdate (int time)
 
virtual int AsyncUpdateWrite (int time)
 
virtual int AsyncMix (int soundTime, float *mixBuffer)
 
virtual void SetMute (bool mute)
 
virtual cinData_t ImageForTime (const int milliseconds, const bool waveform)
 
int GetSoundDecoderInfo (int index, soundDecoderInfo_t &decoderInfo)
 
virtual idSoundWorldAllocSoundWorld (idRenderWorld *rw)
 
virtual void SetPlayingSoundWorld (idSoundWorld *soundWorld)
 
virtual idSoundWorldGetPlayingSoundWorld (void)
 
virtual void BeginLevelLoad (void)
 
virtual void EndLevelLoad (const char *mapString)
 
virtual void PrintMemInfo (MemInfo_t *mi)
 
virtual int IsEAXAvailable (void)
 
int GetCurrent44kHzTime (void) const
 
float dB2Scale (const float val) const
 
int SamplesToMilliseconds (int samples) const
 
int MillisecondsToSamples (int ms) const
 
void DoEnviroSuit (float *samples, int numSamples, int numSpeakers)
 
ALuint AllocOpenALSource (idSoundChannel *chan, bool looping, bool stereo)
 
void FreeOpenALSource (ALuint handle)
 
- Public Member Functions inherited from idSoundSystem
virtual ~idSoundSystem (void)
 

Public Attributes

idAudioHardwaresnd_audio_hw
 
idSoundCachesoundCache
 
idSoundWorldLocalcurrentSoundWorld
 
int olddwCurrentWritePos
 
int buffers
 
int CurrentSoundTime
 
unsigned int nextWriteBlock
 
float realAccum [6 *MIXBUFFER_SAMPLES+16]
 
floatfinalMixBuffer
 
bool isInitialized
 
bool muted
 
bool shutdown
 
s_stats soundStats
 
int meterTops [256]
 
int meterTopsTime [256]
 
dwordgraph
 
float volumesDB [1200]
 
idList< SoundFX * > fxList
 
ALCdeviceopenalDevice
 
ALCcontextopenalContext
 
ALsizei openalSourceCount
 
openalSource_t openalSources [256]
 
EAXSet alEAXSet
 
EAXGet alEAXGet
 
EAXSetBufferMode alEAXSetBufferMode
 
EAXGetBufferMode alEAXGetBufferMode
 
idEFXFile EFXDatabase
 
bool efxloaded
 

Static Public Attributes

static bool useOpenAL = false
 
static bool useEAXReverb = false
 
static int EAXAvailable = -1
 
static idCVar s_noSound
 
static idCVar s_quadraticFalloff
 
static idCVar s_drawSounds
 
static idCVar s_minVolume6
 
static idCVar s_dotbias6
 
static idCVar s_minVolume2
 
static idCVar s_dotbias2
 
static idCVar s_spatializationDecay
 
static idCVar s_showStartSound
 
static idCVar s_maxSoundsPerShader
 
static idCVar s_reverse
 
static idCVar s_showLevelMeter
 
static idCVar s_meterTopTime
 
static idCVar s_volume
 
static idCVar s_constantAmplitude
 
static idCVar s_playDefaultSound
 
static idCVar s_useOcclusion
 
static idCVar s_subFraction
 
static idCVar s_globalFraction
 
static idCVar s_doorDistanceAdd
 
static idCVar s_singleEmitter
 
static idCVar s_numberOfSpeakers
 
static idCVar s_force22kHz
 
static idCVar s_clipVolumes
 
static idCVar s_realTimeDecoding
 
static idCVar s_libOpenAL
 
static idCVar s_useOpenAL
 
static idCVar s_useEAXReverb
 
static idCVar s_muteEAXReverb
 
static idCVar s_decompressionLimit
 
static idCVar s_slowAttenuate
 
static idCVar s_enviroSuitCutoffFreq
 
static idCVar s_enviroSuitCutoffQ
 
static idCVar s_enviroSuitSkipLowpass
 
static idCVar s_enviroSuitSkipReverb
 
static idCVar s_reverbTime
 
static idCVar s_reverbFeedback
 
static idCVar s_enviroSuitVolumeScale
 
static idCVar s_skipHelltimeFX
 

Detailed Description

Definition at line 676 of file snd_local.h.

Constructor & Destructor Documentation

idSoundSystemLocal::idSoundSystemLocal ( )
inline

Definition at line 678 of file snd_local.h.

Member Function Documentation

ALuint idSoundSystemLocal::AllocOpenALSource ( idSoundChannel chan,
bool  looping,
bool  stereo 
)

Definition at line 1157 of file snd_system.cpp.

idSoundWorld * idSoundSystemLocal::AllocSoundWorld ( idRenderWorld rw)
virtual

Implements idSoundSystem.

Definition at line 1052 of file snd_system.cpp.

int idSoundSystemLocal::AsyncMix ( int  soundTime,
float mixBuffer 
)
virtual

Implements idSoundSystem.

Definition at line 600 of file snd_system.cpp.

int idSoundSystemLocal::AsyncUpdate ( int  time)
virtual

Implements idSoundSystem.

Definition at line 626 of file snd_system.cpp.

int idSoundSystemLocal::AsyncUpdateWrite ( int  time)
virtual

Implements idSoundSystem.

Definition at line 748 of file snd_system.cpp.

void idSoundSystemLocal::BeginLevelLoad ( void  )
virtual

Implements idSoundSystem.

Definition at line 1113 of file snd_system.cpp.

void idSoundSystemLocal::ClearBuffer ( void  )
virtual

Implements idSoundSystem.

Definition at line 574 of file snd_system.cpp.

float idSoundSystemLocal::dB2Scale ( const float  val) const

Definition at line 820 of file snd_system.cpp.

void idSoundSystemLocal::DoEnviroSuit ( float samples,
int  numSamples,
int  numSpeakers 
)

Definition at line 1350 of file snd_system.cpp.

void idSoundSystemLocal::EndLevelLoad ( const char *  mapString)
virtual

Implements idSoundSystem.

Definition at line 1130 of file snd_system.cpp.

void idSoundSystemLocal::FreeOpenALSource ( ALuint  handle)

Definition at line 1240 of file snd_system.cpp.

int idSoundSystemLocal::GetCurrent44kHzTime ( void  ) const

Definition at line 559 of file snd_system.cpp.

idSoundWorld * idSoundSystemLocal::GetPlayingSoundWorld ( void  )
virtual

Implements idSoundSystem.

Definition at line 1103 of file snd_system.cpp.

int idSoundSystemLocal::GetSoundDecoderInfo ( int  index,
soundDecoderInfo_t decoderInfo 
)
virtual

Implements idSoundSystem.

Definition at line 995 of file snd_system.cpp.

cinData_t idSoundSystemLocal::ImageForTime ( const int  milliseconds,
const bool  waveform 
)
virtual

Implements idSoundSystem.

Definition at line 837 of file snd_system.cpp.

void idSoundSystemLocal::Init ( void  )
virtual

Implements idSoundSystem.

Definition at line 298 of file snd_system.cpp.

bool idSoundSystemLocal::InitHW ( void  )
virtual

Implements idSoundSystem.

Definition at line 493 of file snd_system.cpp.

int idSoundSystemLocal::IsEAXAvailable ( void  )
virtual

Implements idSoundSystem.

Definition at line 1429 of file snd_system.cpp.

int idSoundSystemLocal::MillisecondsToSamples ( int  ms) const

Definition at line 1083 of file snd_system.cpp.

void idSoundSystemLocal::PrintMemInfo ( MemInfo_t mi)
virtual

Implements idSoundSystem.

Definition at line 1420 of file snd_system.cpp.

int idSoundSystemLocal::SamplesToMilliseconds ( int  samples) const

Definition at line 1074 of file snd_system.cpp.

void idSoundSystemLocal::SetMute ( bool  mute)
virtual

Implements idSoundSystem.

Definition at line 1065 of file snd_system.cpp.

void idSoundSystemLocal::SetPlayingSoundWorld ( idSoundWorld soundWorld)
virtual

Implements idSoundSystem.

Definition at line 1094 of file snd_system.cpp.

void idSoundSystemLocal::Shutdown ( void  )
virtual

Implements idSoundSystem.

Definition at line 436 of file snd_system.cpp.

bool idSoundSystemLocal::ShutdownHW ( void  )
virtual

Implements idSoundSystem.

Definition at line 531 of file snd_system.cpp.

Member Data Documentation

EAXGet idSoundSystemLocal::alEAXGet

Definition at line 769 of file snd_local.h.

EAXGetBufferMode idSoundSystemLocal::alEAXGetBufferMode

Definition at line 771 of file snd_local.h.

EAXSet idSoundSystemLocal::alEAXSet

Definition at line 768 of file snd_local.h.

EAXSetBufferMode idSoundSystemLocal::alEAXSetBufferMode

Definition at line 770 of file snd_local.h.

int idSoundSystemLocal::buffers

Definition at line 741 of file snd_local.h.

int idSoundSystemLocal::CurrentSoundTime

Definition at line 742 of file snd_local.h.

idSoundWorldLocal* idSoundSystemLocal::currentSoundWorld

Definition at line 738 of file snd_local.h.

int idSoundSystemLocal::EAXAvailable = -1
static

Definition at line 778 of file snd_local.h.

idEFXFile idSoundSystemLocal::EFXDatabase

Definition at line 772 of file snd_local.h.

bool idSoundSystemLocal::efxloaded

Definition at line 773 of file snd_local.h.

float* idSoundSystemLocal::finalMixBuffer

Definition at line 747 of file snd_local.h.

idList<SoundFX*> idSoundSystemLocal::fxList

Definition at line 762 of file snd_local.h.

dword* idSoundSystemLocal::graph

Definition at line 758 of file snd_local.h.

bool idSoundSystemLocal::isInitialized

Definition at line 749 of file snd_local.h.

int idSoundSystemLocal::meterTops[256]

Definition at line 755 of file snd_local.h.

int idSoundSystemLocal::meterTopsTime[256]

Definition at line 756 of file snd_local.h.

bool idSoundSystemLocal::muted

Definition at line 750 of file snd_local.h.

unsigned int idSoundSystemLocal::nextWriteBlock

Definition at line 744 of file snd_local.h.

int idSoundSystemLocal::olddwCurrentWritePos

Definition at line 740 of file snd_local.h.

ALCcontext* idSoundSystemLocal::openalContext

Definition at line 765 of file snd_local.h.

ALCdevice* idSoundSystemLocal::openalDevice

Definition at line 764 of file snd_local.h.

ALsizei idSoundSystemLocal::openalSourceCount

Definition at line 766 of file snd_local.h.

openalSource_t idSoundSystemLocal::openalSources[256]

Definition at line 767 of file snd_local.h.

float idSoundSystemLocal::realAccum[6 *MIXBUFFER_SAMPLES+16]

Definition at line 746 of file snd_local.h.

idCVar idSoundSystemLocal::s_clipVolumes
static

Definition at line 804 of file snd_local.h.

idCVar idSoundSystemLocal::s_constantAmplitude
static

Definition at line 795 of file snd_local.h.

idCVar idSoundSystemLocal::s_decompressionLimit
static

Definition at line 810 of file snd_local.h.

idCVar idSoundSystemLocal::s_doorDistanceAdd
static

Definition at line 800 of file snd_local.h.

idCVar idSoundSystemLocal::s_dotbias2
static

Definition at line 787 of file snd_local.h.

idCVar idSoundSystemLocal::s_dotbias6
static

Definition at line 785 of file snd_local.h.

idCVar idSoundSystemLocal::s_drawSounds
static

Definition at line 783 of file snd_local.h.

idCVar idSoundSystemLocal::s_enviroSuitCutoffFreq
static

Definition at line 814 of file snd_local.h.

idCVar idSoundSystemLocal::s_enviroSuitCutoffQ
static

Definition at line 815 of file snd_local.h.

idCVar idSoundSystemLocal::s_enviroSuitSkipLowpass
static

Definition at line 816 of file snd_local.h.

idCVar idSoundSystemLocal::s_enviroSuitSkipReverb
static

Definition at line 817 of file snd_local.h.

idCVar idSoundSystemLocal::s_enviroSuitVolumeScale
static

Definition at line 821 of file snd_local.h.

idCVar idSoundSystemLocal::s_force22kHz
static

Definition at line 803 of file snd_local.h.

idCVar idSoundSystemLocal::s_globalFraction
static

Definition at line 799 of file snd_local.h.

idCVar idSoundSystemLocal::s_libOpenAL
static

Definition at line 806 of file snd_local.h.

idCVar idSoundSystemLocal::s_maxSoundsPerShader
static

Definition at line 790 of file snd_local.h.

idCVar idSoundSystemLocal::s_meterTopTime
static

Definition at line 793 of file snd_local.h.

idCVar idSoundSystemLocal::s_minVolume2
static

Definition at line 786 of file snd_local.h.

idCVar idSoundSystemLocal::s_minVolume6
static

Definition at line 784 of file snd_local.h.

idCVar idSoundSystemLocal::s_muteEAXReverb
static

Definition at line 809 of file snd_local.h.

idCVar idSoundSystemLocal::s_noSound
static

Definition at line 781 of file snd_local.h.

idCVar idSoundSystemLocal::s_numberOfSpeakers
static

Definition at line 802 of file snd_local.h.

idCVar idSoundSystemLocal::s_playDefaultSound
static

Definition at line 796 of file snd_local.h.

idCVar idSoundSystemLocal::s_quadraticFalloff
static

Definition at line 782 of file snd_local.h.

idCVar idSoundSystemLocal::s_realTimeDecoding
static

Definition at line 805 of file snd_local.h.

idCVar idSoundSystemLocal::s_reverbFeedback
static

Definition at line 820 of file snd_local.h.

idCVar idSoundSystemLocal::s_reverbTime
static

Definition at line 819 of file snd_local.h.

idCVar idSoundSystemLocal::s_reverse
static

Definition at line 791 of file snd_local.h.

idCVar idSoundSystemLocal::s_showLevelMeter
static

Definition at line 792 of file snd_local.h.

idCVar idSoundSystemLocal::s_showStartSound
static

Definition at line 789 of file snd_local.h.

idCVar idSoundSystemLocal::s_singleEmitter
static

Definition at line 801 of file snd_local.h.

idCVar idSoundSystemLocal::s_skipHelltimeFX
static

Definition at line 822 of file snd_local.h.

idCVar idSoundSystemLocal::s_slowAttenuate
static

Definition at line 812 of file snd_local.h.

idCVar idSoundSystemLocal::s_spatializationDecay
static

Definition at line 788 of file snd_local.h.

idCVar idSoundSystemLocal::s_subFraction
static

Definition at line 798 of file snd_local.h.

idCVar idSoundSystemLocal::s_useEAXReverb
static

Definition at line 808 of file snd_local.h.

idCVar idSoundSystemLocal::s_useOcclusion
static

Definition at line 797 of file snd_local.h.

idCVar idSoundSystemLocal::s_useOpenAL
static

Definition at line 807 of file snd_local.h.

idCVar idSoundSystemLocal::s_volume
static

Definition at line 794 of file snd_local.h.

bool idSoundSystemLocal::shutdown

Definition at line 751 of file snd_local.h.

idAudioHardware* idSoundSystemLocal::snd_audio_hw

Definition at line 735 of file snd_local.h.

idSoundCache* idSoundSystemLocal::soundCache

Definition at line 736 of file snd_local.h.

s_stats idSoundSystemLocal::soundStats

Definition at line 753 of file snd_local.h.

bool idSoundSystemLocal::useEAXReverb = false
static

Definition at line 776 of file snd_local.h.

bool idSoundSystemLocal::useOpenAL = false
static

Definition at line 775 of file snd_local.h.

float idSoundSystemLocal::volumesDB[1200]

Definition at line 760 of file snd_local.h.


The documentation for this class was generated from the following files: