ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <sound_logic.h>

Collaboration diagram for ICB::_sound_logic:

List of all members.

Public Member Functions

 _sound_logic ()
 ~_sound_logic ()
void Initialise ()
void Cycle ()
bool8 SoundEventPendingForID (uint32 nID)
void ClearHeardFlag (uint32 nID)
uint32 ProcessSound (int32 fX, int32 fY, int32 fZ, const CSfx *pSFX) const
void NewSound (uint32 nObjectID, int32 nX, int32 nY, int32 nZ, const CSfx *pSFX, uint32 nSoundHash)
bool8 SubtitleActive () const
void DrawSubtitle () const
void SetSuspendedFlag (uint32 nID, bool8 bSuspend)
void AddSubscription (uint32 nID, const char *pcSoundID)
void RemoveSubscription (uint32 nID, const char *pcSoundID)
void RemoveAllSubscriptions (uint32 nID)
void SetHearingSensitivity (uint32 nID, uint32 nSensitivity)
bool8 MegaHeardSomething (uint32 nID)
bool8 MegaHeardThis (uint32 nID, const char *pcSoundID)
int32 GetSoundX (uint32 nSoundHash) const
int32 GetSoundZ (uint32 nSoundHash) const
void LinkFloorsForSoundEvents (const char *pcFloor1, const char *pcFloor2)

Private Types

enum  SoundVolumeMode { ACTUAL_VOLUME = 0, LOGIC_VOLUME }

Private Member Functions

 _sound_logic (const _sound_logic &)
void operator= (const _sound_logic &)
uint32 FindMegaInList (uint32 nID) const
uint8 CalculateEffectiveVolume (SoundVolumeMode eMode, uint32 nMegaID, int32 nSoundX, int32 nSoundY, int32 nSoundZ, const CSfx *pSFX) const
bool8 SoundAndEarOnSameOrLinkedFloors (uint32 nEarID, PXreal fSoundX, PXreal fSoundY, PXreal fSoundZ) const
bool8 FloorsLinkedForSounds (uint32 nFloor1, uint32 nFloor2) const

Private Attributes

uint32 m_nNumSubscribers
uint32 m_nSFXSubtitleTimer
const char * m_pcSFXSubtitleText
_sound_logic_entry m_pSubscribers [SL_MAX_SUBSCRIBERS]
_sound_position m_pPositions [SL_MAX_CONCURRENT_SOUNDS]
uint32 m_pnLinkedFloors [SL_MAX_FLOOR_LINKS][2]
uint32 m_nNumLinkedFloors

Detailed Description

Definition at line 86 of file sound_logic.h.


Member Enumeration Documentation

Enumerator:
ACTUAL_VOLUME 
LOGIC_VOLUME 

Definition at line 129 of file sound_logic.h.


Constructor & Destructor Documentation

ICB::_sound_logic::_sound_logic (  )  [inline]

Definition at line 151 of file sound_logic.h.

ICB::_sound_logic::~_sound_logic (  )  [inline]

Definition at line 90 of file sound_logic.h.

ICB::_sound_logic::_sound_logic ( const _sound_logic  )  [inline, private]

Definition at line 139 of file sound_logic.h.


Member Function Documentation

void ICB::_sound_logic::AddSubscription ( uint32  nID,
const char *  pcSoundID 
)

Definition at line 100 of file sound_logic.cpp.

uint8 ICB::_sound_logic::CalculateEffectiveVolume ( SoundVolumeMode  eMode,
uint32  nMegaID,
int32  nSoundX,
int32  nSoundY,
int32  nSoundZ,
const CSfx pSFX 
) const [private]

Definition at line 345 of file sound_logic.cpp.

void ICB::_sound_logic::ClearHeardFlag ( uint32  nID  ) 

Definition at line 75 of file sound_logic.cpp.

void ICB::_sound_logic::Cycle (  ) 

Definition at line 87 of file sound_logic.cpp.

void ICB::_sound_logic::DrawSubtitle (  )  const

Definition at line 50 of file sound_logic.cpp.

uint32 ICB::_sound_logic::FindMegaInList ( uint32  nID  )  const [private]

Definition at line 336 of file sound_logic.cpp.

bool8 ICB::_sound_logic::FloorsLinkedForSounds ( uint32  nFloor1,
uint32  nFloor2 
) const [private]

Definition at line 479 of file sound_logic.cpp.

int32 ICB::_sound_logic::GetSoundX ( uint32  nSoundHash  )  const

Definition at line 262 of file sound_logic.cpp.

int32 ICB::_sound_logic::GetSoundZ ( uint32  nSoundHash  )  const

Definition at line 277 of file sound_logic.cpp.

void ICB::_sound_logic::Initialise (  ) 

Definition at line 36 of file sound_logic.cpp.

void ICB::_sound_logic::LinkFloorsForSoundEvents ( const char *  pcFloor1,
const char *  pcFloor2 
)

Definition at line 306 of file sound_logic.cpp.

bool8 ICB::_sound_logic::MegaHeardSomething ( uint32  nID  ) 

Definition at line 172 of file sound_logic.cpp.

bool8 ICB::_sound_logic::MegaHeardThis ( uint32  nID,
const char *  pcSoundID 
)

Definition at line 185 of file sound_logic.cpp.

void ICB::_sound_logic::NewSound ( uint32  nObjectID,
int32  nX,
int32  nY,
int32  nZ,
const CSfx pSFX,
uint32  nSoundHash 
)

Definition at line 197 of file sound_logic.cpp.

void ICB::_sound_logic::operator= ( const _sound_logic  )  [inline, private]

Definition at line 140 of file sound_logic.h.

uint32 ICB::_sound_logic::ProcessSound ( int32  fX,
int32  fY,
int32  fZ,
const CSfx pSFX 
) const [inline]

Definition at line 153 of file sound_logic.h.

void ICB::_sound_logic::RemoveAllSubscriptions ( uint32  nID  ) 

Definition at line 137 of file sound_logic.cpp.

void ICB::_sound_logic::RemoveSubscription ( uint32  nID,
const char *  pcSoundID 
)

Definition at line 122 of file sound_logic.cpp.

void ICB::_sound_logic::SetHearingSensitivity ( uint32  nID,
uint32  nSensitivity 
)

Definition at line 152 of file sound_logic.cpp.

void ICB::_sound_logic::SetSuspendedFlag ( uint32  nID,
bool8  bSuspend 
)

Definition at line 63 of file sound_logic.cpp.

bool8 ICB::_sound_logic::SoundAndEarOnSameOrLinkedFloors ( uint32  nEarID,
PXreal  fSoundX,
PXreal  fSoundY,
PXreal  fSoundZ 
) const [private]

Definition at line 432 of file sound_logic.cpp.

bool8 ICB::_sound_logic::SoundEventPendingForID ( uint32  nID  ) 

just return false.

Definition at line 292 of file sound_logic.cpp.

bool8 ICB::_sound_logic::SubtitleActive (  )  const [inline]

Definition at line 111 of file sound_logic.h.


Member Data Documentation

Definition at line 137 of file sound_logic.h.

Definition at line 131 of file sound_logic.h.

Definition at line 132 of file sound_logic.h.

Definition at line 133 of file sound_logic.h.

uint32 ICB::_sound_logic::m_pnLinkedFloors[SL_MAX_FLOOR_LINKS][2] [private]

Definition at line 136 of file sound_logic.h.

_sound_position ICB::_sound_logic::m_pPositions[SL_MAX_CONCURRENT_SOUNDS] [private]

Definition at line 135 of file sound_logic.h.

Definition at line 134 of file sound_logic.h.


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


Generated on Sat Sep 26 2020 05:03:42 for ResidualVM by doxygen 1.7.1
curved edge   curved edge