#include "C4Include.h"#include "platform/C4SoundSystem.h"#include "lib/C4Random.h"#include "game/C4Application.h"#include "game/C4Viewport.h"#include "object/C4Object.h"#include "platform/C4SoundIncludes.h"#include "platform/C4SoundInstance.h"#include "platform/C4SoundLoaders.h"Go to the source code of this file.
Functions | |
| C4SoundInstance * | StartSoundEffect (const char *szSndName, bool fLoop, int32_t iVolume, C4Object *pObj, int32_t iCustomFalloffDistance, int32_t iPitch, C4SoundModifier *modifier) |
| C4SoundInstance * | StartSoundEffectAt (const char *szSndName, int32_t iX, int32_t iY, int32_t iVolume, int32_t iCustomFallofDistance, int32_t iPitch, C4SoundModifier *modifier) |
| C4SoundInstance * | GetSoundInstance (const char *szSndName, C4Object *pObj) |
| void | StopSoundEffect (const char *szSndName, C4Object *pObj) |
| void | SoundLevel (const char *szSndName, C4Object *pObj, int32_t iLevel) |
| void | SoundPan (const char *szSndName, C4Object *pObj, int32_t iPan) |
| void | SoundPitch (const char *szSndName, C4Object *pObj, int32_t iPitch) |
| void | SoundUpdate (C4SoundInstance *pInst, int32_t iLevel, int32_t iPitch) |
| C4SoundInstance* GetSoundInstance | ( | const char * | szSndName, |
| C4Object * | pObj | ||
| ) |
Definition at line 283 of file C4SoundSystem.cpp.
References Application, C4SoundSystem::FindInstance(), and C4Application::SoundSystem.
| void SoundLevel | ( | const char * | szSndName, |
| C4Object * | pObj, | ||
| int32_t | iLevel | ||
| ) |
Definition at line 296 of file C4SoundSystem.cpp.
References Application, C4SoundInstance::Execute(), C4SoundSystem::FindInstance(), C4SoundInstance::SetVolume(), C4Application::SoundSystem, StartSoundEffect(), and StopSoundEffect().
| void SoundPan | ( | const char * | szSndName, |
| C4Object * | pObj, | ||
| int32_t | iPan | ||
| ) |
Definition at line 309 of file C4SoundSystem.cpp.
References Application, C4SoundInstance::Execute(), C4SoundSystem::FindInstance(), C4SoundInstance::SetPan(), and C4Application::SoundSystem.
| void SoundPitch | ( | const char * | szSndName, |
| C4Object * | pObj, | ||
| int32_t | iPitch | ||
| ) |
Definition at line 319 of file C4SoundSystem.cpp.
References Application, C4SoundInstance::Execute(), C4SoundSystem::FindInstance(), C4SoundInstance::SetPitch(), and C4Application::SoundSystem.
| void SoundUpdate | ( | C4SoundInstance * | pInst, |
| int32_t | iLevel, | ||
| int32_t | iPitch | ||
| ) |
Definition at line 329 of file C4SoundSystem.cpp.
References C4SoundInstance::Execute(), C4SoundInstance::SetPitch(), and C4SoundInstance::SetVolume().
| C4SoundInstance* StartSoundEffect | ( | const char * | szSndName, |
| bool | fLoop, | ||
| int32_t | iVolume, | ||
| C4Object * | pObj, | ||
| int32_t | iCustomFalloffDistance, | ||
| int32_t | iPitch, | ||
| C4SoundModifier * | modifier | ||
| ) |
Definition at line 263 of file C4SoundSystem.cpp.
References Application, Config, C4SoundSystem::NewEffect(), C4ConfigSound::RXSound, C4Config::Sound, and C4Application::SoundSystem.
Referenced by C4ViewportList::CloseViewport(), C4ControlEMMoveObject::CreateObject(), C4ViewportList::CreateViewport(), C4Object::DirectComContents(), C4Player::DoWealth(), C4Player::Eliminate(), C4Object::ExecLife(), C4GUI::GUISound(), C4GameLobby::MainDlg::OnCountdownPacket(), C4GameLobby::MainDlg::OnError(), C4Object::Promote(), C4Game::QuickSave(), C4Object::SetAction(), C4Player::SetHostility(), SoundLevel(), StartSoundEffectAt(), and C4Player::Surrender().
| C4SoundInstance* StartSoundEffectAt | ( | const char * | szSndName, |
| int32_t | iX, | ||
| int32_t | iY, | ||
| int32_t | iVolume, | ||
| int32_t | iCustomFallofDistance, | ||
| int32_t | iPitch, | ||
| C4SoundModifier * | modifier | ||
| ) |
Definition at line 271 of file C4SoundSystem.cpp.
References Config, C4ConfigSound::RXSound, C4SoundInstance::SetVolumeByPos(), C4Config::Sound, and StartSoundEffect().
| void StopSoundEffect | ( | const char * | szSndName, |
| C4Object * | pObj | ||
| ) |
Definition at line 288 of file C4SoundSystem.cpp.
References Application, C4SoundSystem::FindInstance(), C4Application::SoundSystem, and C4SoundInstance::Stop().
Referenced by C4Object::SetAction(), and SoundLevel().