#include <C4SoundModifiers.h>
Public Types | |
enum | Type { C4SMT_None = 0x0 , C4SMT_Reverb = 0x1 , C4SMT_Echo = 0x4 , C4SMT_Equalizer = 0xc , C4SMT_Max = 0xc } |
Public Member Functions | |
C4SoundModifier (C4PropList *in_props) | |
virtual | ~C4SoundModifier () |
virtual void | Update () |
void | Release () |
void | AddRef () |
void | DelRef () |
int32_t | GetRefCount () const |
const C4PropList * | GetProps () const |
void | ApplyTo (ALuint source) |
Protected Member Functions | |
float | GetFloatProp (C4PropertyName key, float ratio, float default_value) |
bool | GetBoolProp (C4PropertyName key, bool default_value) |
Protected Attributes | |
ALuint | effect |
ALuint | slot |
Definition at line 26 of file C4SoundModifiers.h.
Enumerator | |
---|---|
C4SMT_None | |
C4SMT_Reverb | |
C4SMT_Echo | |
C4SMT_Equalizer | |
C4SMT_Max |
Definition at line 29 of file C4SoundModifiers.h.
C4SoundModifier::C4SoundModifier | ( | C4PropList * | in_props | ) |
Definition at line 53 of file C4SoundModifiers.cpp.
References C4SoundModifierList::Add(), Application, effect, C4SoundSystem::Modifiers, C4Application::MusicSystem, C4MusicSystem::SelectContext(), C4Value::SetPropList(), slot, and C4Application::SoundSystem.
|
virtual |
Definition at line 67 of file C4SoundModifiers.cpp.
References Application, effect, C4SoundSystem::Modifiers, C4SoundModifierList::Remove(), slot, and C4Application::SoundSystem.
|
inline |
Definition at line 69 of file C4SoundModifiers.h.
Referenced by C4SoundInstance::Create(), C4SoundModifierList::SetGlobalModifier(), and C4SoundInstance::SetModifier().
void C4SoundModifier::ApplyTo | ( | ALuint | source | ) |
Definition at line 93 of file C4SoundModifiers.cpp.
References slot.
Referenced by C4SoundInstance::SetModifier(), and C4SoundInstance::Start().
|
inline |
Definition at line 70 of file C4SoundModifiers.h.
Referenced by C4SoundInstance::Clear(), C4SoundModifierList::SetGlobalModifier(), and C4SoundInstance::SetModifier().
|
protected |
Definition at line 109 of file C4SoundModifiers.cpp.
References C4Value::_getPropList(), and C4PropList::GetPropertyInt().
Referenced by C4SoundModifierReverb::Update().
|
protected |
Definition at line 102 of file C4SoundModifiers.cpp.
References C4Value::_getPropList(), and C4PropList::GetPropertyInt().
Referenced by C4SoundModifierReverb::Update(), C4SoundModifierEcho::Update(), and C4SoundModifierEqualizer::Update().
|
inline |
Definition at line 73 of file C4SoundModifiers.h.
References C4Value::_getPropList().
|
inline |
Definition at line 71 of file C4SoundModifiers.h.
Referenced by C4SoundModifierList::Clear().
|
inline |
Definition at line 66 of file C4SoundModifiers.h.
References C4Value::Set0().
Referenced by C4SoundModifierList::Clear().
|
virtual |
Reimplemented in C4SoundModifierEqualizer, C4SoundModifierEcho, and C4SoundModifierReverb.
Definition at line 79 of file C4SoundModifiers.cpp.
Referenced by C4SoundModifierList::Get(), C4SoundModifierReverb::Update(), C4SoundModifierEcho::Update(), and C4SoundModifierEqualizer::Update().
|
protected |
Definition at line 53 of file C4SoundModifiers.h.
Referenced by C4SoundModifier(), C4SoundModifierEcho::C4SoundModifierEcho(), C4SoundModifierEqualizer::C4SoundModifierEqualizer(), C4SoundModifierReverb::C4SoundModifierReverb(), Update(), C4SoundModifierReverb::Update(), C4SoundModifierEcho::Update(), C4SoundModifierEqualizer::Update(), and ~C4SoundModifier().
|
protected |
Definition at line 53 of file C4SoundModifiers.h.
Referenced by ApplyTo(), C4SoundModifier(), Update(), and ~C4SoundModifier().