27 #ifndef ICB_SOUND_LOGIC_ENTRY_H_INCLUDED 28 #define ICB_SOUND_LOGIC_ENTRY_H_INCLUDED 30 #include "engines/icb/p4.h" 31 #include "engines/icb/debug.h" 32 #include "engines/icb/common/px_clu_api.h" 37 #define SL_MAX_SOUND_REGISTRATIONS 10 40 #define SL_MIN_HEARING_SENSITIVITY 0 41 #define SL_MAX_HEARING_SENSITIVITY 9 44 #define SL_MAX_VOLUME 127 47 #define SL_DEFAULT_HEARING_SENSITIVITY 5 56 void Initialise(uint32 nID, bool8 bFull = TRUE8);
59 uint32 GetMegaID()
const {
return (m_nMegaID); }
60 inline bool8 HeardSound();
61 void SetHearingSensitivity(uint32 nSensitivity);
62 bool8 HeardThis(
const char *pcSoundID);
63 void SetSuspendedFlag(bool8 bSuspend) {
64 m_bSuspended = bSuspend;
65 m_bHeardSomething = FALSE8;
69 void ClearHeardFlag() { m_bHeardSomething = FALSE8; }
72 bool8 AddSoundRegistration(
const char *pcSoundID);
75 void RemoveSoundRegistration(
const char *pcSoundID);
78 void SoundReachedMega(uint32 nHashedSoundID, uint32 nVolume);
82 uint32 m_nHashedSoundIDs[SL_MAX_SOUND_REGISTRATIONS];
83 uint32 m_nLastHashedSoundHeard;
84 bool8 m_bHeardSomething;
85 uint8 m_nHearingThreshold;
94 inline _sound_logic_entry::_sound_logic_entry() { memset(m_nHashedSoundIDs, 0, SL_MAX_SOUND_REGISTRATIONS *
sizeof(uint32)); m_nPad2 = 0; }
96 inline bool8 _sound_logic_entry::HeardSound() {
return (m_bHeardSomething); }
100 #endif // #if !defined(SOUND_LOGIC_ENTRY_H_INCLUDED)
Definition: sound_logic_entry.h:50