ManaPlus
|
#include "soundmanager.h"
#include "configuration.h"
#include "being/localplayer.h"
#include "fs/virtfs/fs.h"
#include "resources/sdlmusic.h"
#include "resources/soundeffect.h"
#include "resources/loaders/musicloader.h"
#include "resources/loaders/soundloader.h"
#include "resources/resourcemanager/resourcemanager.h"
#include "utils/checkutils.h"
#include "utils/sdlmusichelper.h"
#include <SDL.h>
#include "debug.h"
Go to the source code of this file.
Functions | |
static void | fadeOutCallBack () |
static SDLMusic * | loadMusic (const std::string &fileName, const SkipError skipError) |
Variables | |
SoundManager | soundManager |
static bool | sFadingOutEnded = false |
|
static |
Callback used at end of fadeout. It is called by Mix_MusicFadeFinished().
Definition at line 67 of file soundmanager.cpp.
References sFadingOutEnded.
Referenced by SoundManager::SoundManager().
Definition at line 338 of file soundmanager.cpp.
References VirtFs::exists(), fileName, Loader::getMusic(), Configuration::getStringValue(), pathJoin(), paths, reportAlways, and SkipError_false.
Referenced by SoundManager::playMusic().
|
static |
This will be set to true, when a music can be freed after a fade out Currently used by fadeOutCallBack()
Definition at line 61 of file soundmanager.cpp.
Referenced by fadeOutCallBack(), SoundManager::fadeOutMusic(), SoundManager::logic(), and SoundManager::SoundManager().
SoundManager soundManager |
Definition at line 55 of file soundmanager.cpp.
Referenced by SetupItemSound::action(), QuitDialog::action(), Setup_Audio::apply(), GameModifiers::changeAwayMode(), Game::changeMap(), ChatTab::chatLog(), LocalPlayer::checkNewName(), ConfirmDialog::ConfirmDialog(), Client::gameClear(), Client::gameExec(), Client::initSoundManager(), Being::logic(), NotifyManager::notify(), OkDialog::OkDialog(), ChatTab::playNewMessageSound(), ClanTab::playNewMessageSound(), EmulateGuildTab::playNewMessageSound(), GuildTab::playNewMessageSound(), PartyTab::playNewMessageSound(), StatusEffect::playSFX(), ItemSoundManager::playSfx(), Being::playSfx(), NpcDialog::postInit(), QuitDialog::postInit(), Ea::PlayerRecv::processMapMusic(), ShopWindow::processRequest(), Window::setVisible(), TestLauncher::testSound(), EffectManager::trigger(), EffectManager::triggerReturn(), LocalPlayer::updateMusic(), and LocalPlayer::~LocalPlayer().