20 #ifndef INC_C4SoundModifiers
21 #define INC_C4SoundModifiers
46 int32_t instance_count;
51 #if AUDIO_TK == AUDIO_TK_OPENAL
67 if (!instance_count)
delete this;
else { released =
true; props.
Set0(); }
70 void DelRef() {
if (!--instance_count && released)
delete this; }
75 #if AUDIO_TK == AUDIO_TK_OPENAL
117 std::list<C4SoundModifier *> sound_modifiers;
118 std::vector<C4SoundModifier *> global_modifiers;
C4SoundModifierEcho(C4PropList *in_props)
C4SoundModifierEqualizer(C4PropList *in_props)
float GetFloatProp(C4PropertyName key, float ratio, float default_value)
bool GetBoolProp(C4PropertyName key, bool default_value)
virtual ~C4SoundModifier()
int32_t GetRefCount() const
const C4PropList * GetProps() const
void ApplyTo(ALuint source)
C4SoundModifier(C4PropList *in_props)
C4SoundModifier * Get(class C4PropList *props, bool create_if_not_found)
void Add(C4SoundModifier *new_modifier)
void Remove(C4SoundModifier *prev_modifier)
C4SoundModifier * GetGlobalModifier(int32_t player_index) const
void SetGlobalModifier(C4SoundModifier *new_modifier, int32_t player_index)
C4SoundModifierReverb(C4PropList *in_props)
C4PropList * _getPropList() const