#include <C4SoundModifiers.h>
Public Member Functions | |
C4SoundModifierList () | |
void | Init () |
void | Add (C4SoundModifier *new_modifier) |
void | Remove (C4SoundModifier *prev_modifier) |
C4SoundModifier * | Get (class C4PropList *props, bool create_if_not_found) |
void | Clear () |
void | SetGlobalModifier (C4SoundModifier *new_modifier, int32_t player_index) |
C4SoundModifier * | GetGlobalModifier (int32_t player_index) const |
Definition at line 112 of file C4SoundModifiers.h.
C4SoundModifierList::C4SoundModifierList | ( | ) |
|
inline |
Definition at line 122 of file C4SoundModifiers.h.
Referenced by C4SoundModifier::C4SoundModifier().
void C4SoundModifierList::Clear | ( | ) |
Definition at line 282 of file C4SoundModifiers.cpp.
References C4SoundModifier::GetRefCount(), and C4SoundModifier::Release().
Referenced by C4Game::Clear(), and C4SoundSystem::Clear().
C4SoundModifier * C4SoundModifierList::Get | ( | class C4PropList * | props, |
bool | create_if_not_found | ||
) |
Definition at line 295 of file C4SoundModifiers.cpp.
References C4SoundModifier::C4SMT_Echo, C4SoundModifier::C4SMT_Equalizer, C4SoundModifier::C4SMT_Reverb, C4PropList::GetPropertyInt(), P_Type, and C4SoundModifier::Update().
Referenced by C4Game::SetGlobalSoundModifier(), and C4Player::SetSoundModifier().
C4SoundModifier * C4SoundModifierList::GetGlobalModifier | ( | int32_t | player_index | ) | const |
Definition at line 348 of file C4SoundModifiers.cpp.
Referenced by C4SoundInstance::SetPlayer().
void C4SoundModifierList::Init | ( | ) |
Definition at line 201 of file C4SoundModifiers.cpp.
References StdStrBuf::Append(), StdStrBuf::AppendFormat(), Application, StdStrBuf::getData(), C4MusicSystem::GetDevice(), StdStrBuf::getLength(), LogF(), C4Application::MusicSystem, and C4MusicSystem::SelectContext().
Referenced by C4SoundSystem::Init().
|
inline |
Definition at line 123 of file C4SoundModifiers.h.
Referenced by C4SoundModifier::~C4SoundModifier().
void C4SoundModifierList::SetGlobalModifier | ( | C4SoundModifier * | new_modifier, |
int32_t | player_index | ||
) |
Definition at line 326 of file C4SoundModifiers.cpp.
References C4SoundModifier::AddRef(), Application, C4SoundModifier::DelRef(), C4SoundSystem::GetFirstInstance(), C4SoundSystem::GetNextInstance(), and C4Application::SoundSystem.
Referenced by C4Game::SetGlobalSoundModifier(), and C4Player::SetSoundModifier().