|
World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
#include <AudioPlayer.h>
Классы | |
| struct | SoundHeader |
Открытые члены | |
| AudioPlayer () | |
| virtual | ~AudioPlayer () |
| void | Initialize () |
| void | SetMasterVolume (int level) |
| void | MusicPlayTrack (enum MusicID eTrack) |
| void | MusicStart () |
| void | MusicStop () |
| void | MusicPause () |
| void | MusicResume () |
| void | SetMusicVolume (int music_level) |
| float | MusicGetVolume () |
| void | StopAll (int sample_id) |
| void | PlaySound (SoundID eSoundID, int pid, unsigned int uNumRepeats, int x, int y, int a7) |
| void | UpdateSounds () |
| void | StopChannels (int uStartChannel, int uEndChannel) |
| void | LoadAudioSnd () |
| void | MessWithChannels () |
| bool | FindSound (const std::string &pName, struct AudioPlayer::SoundHeader *header) |
| PMemBuffer | LoadSound (const std::string &pSoundName) |
| PMemBuffer | LoadSound (int uSoundID) |
| void | PlaySpellSound (unsigned int spell, unsigned int pid) |
Защищенные типы | |
| typedef struct AudioPlayer::SoundHeader | SoundHeader |
Защищенные данные | |
| bool | bPlayerReady |
| int | currentMusicTrack |
| float | uMasterVolume |
| PAudioTrack | pCurrentMusicTrack |
| std::ifstream | fAudioSnd |
| std::map< String, SoundHeader > | mSoundHeaders |
См. определение в файле AudioPlayer.h строка 111
|
protected |
|
inline |
См. определение в файле AudioPlayer.h строка 120
|
inlinevirtual |
См. определение в файле AudioPlayer.h строка 121
| void AudioPlayer::Initialize | ( | ) |
См. определение в файле AudioPlayer.cpp строка 364
Перекрестные ссылки bPlayerReady, currentMusicTrack, engine, LoadAudioSnd(), pAudioPlayer, SetMasterVolume(), SetMusicVolume() и uMasterVolume.
Используется в Engine::MM7_Initialize().
Граф вызовов:
Граф вызова функции:| void AudioPlayer::SetMasterVolume | ( | int | level | ) |
См. определение в файле AudioPlayer.cpp строка 183
Перекрестные ссылки pSoundVolumeLevels и uMasterVolume.
Используется в Application::Menu::EventLoop(), Initialize() и LoadGame().
Граф вызова функции:См. определение в файле AudioPlayer.cpp строка 109
Перекрестные ссылки bPlayerReady, CreateAudioTrack(), currentMusicTrack, engine, FileExists(), logger, MakeDataPath(), pCurrentMusicTrack, pSoundVolumeLevels, StringPrintf() и Log::Warning().
Используется в GUICredits::ExecuteCredits(), GUIWindow_MainMenu::Loop() и PlayLevelMusic().
Граф вызовов:
Граф вызова функции:| void AudioPlayer::MusicStart | ( | ) |
См. определение в файле AudioPlayer.cpp строка 138
| void AudioPlayer::MusicStop | ( | ) |
См. определение в файле AudioPlayer.cpp строка 140
Перекрестные ссылки pCurrentMusicTrack.
Используется в GUICredits::ExecuteCredits(), Application::Game::Loop() и PartyCreationUI_Loop().
Граф вызова функции:| void AudioPlayer::MusicPause | ( | ) |
См. определение в файле AudioPlayer.cpp строка 149
Перекрестные ссылки pCurrentMusicTrack.
Используется в Application::GameWindowHandler::OnDeactivated(), MPlayer::OpenHouseMovie() и MPlayer::PlayFullscreenMovie().
Граф вызова функции:| void AudioPlayer::MusicResume | ( | ) |
См. определение в файле AudioPlayer.cpp строка 157
Перекрестные ссылки pCurrentMusicTrack.
Используется в Application::GameWindowHandler::OnActivated() и MPlayer::Unload().
Граф вызова функции:| void AudioPlayer::SetMusicVolume | ( | int | music_level | ) |
См. определение в файле AudioPlayer.cpp строка 165
Перекрестные ссылки pCurrentMusicTrack и pSoundVolumeLevels.
Используется в Application::Menu::EventLoop(), Application::Game::GameLoop(), Initialize() и LoadGame().
Граф вызова функции:| float AudioPlayer::MusicGetVolume | ( | ) |
| void AudioPlayer::StopAll | ( | int | sample_id | ) |
См. определение в файле AudioPlayer.cpp строка 189
Перекрестные ссылки bPlayerReady.
Используется в BLV_ProcessPartyActions(), GUICredits::ExecuteCredits() и ODM_ProcessPartyActions().
Граф вызова функции:| void AudioPlayer::PlaySound | ( | SoundID | eSoundID, |
| int | pid, | ||
| unsigned int | uNumRepeats, | ||
| int | x, | ||
| int | y, | ||
| int | a7 | ||
| ) |
См. определение в файле AudioPlayer.cpp строка 195
Перекрестные ссылки bPlayerReady, CreateAudioSample(), engine, LEVEL_Indoor, LoadSound(), logger, mapSounds, OBJECT_Actor, OBJECT_BLVDoor, OBJECT_BModel, OBJECT_Decoration, OBJECT_Item, OBJECT_Player, pActors, IndoorLocation::pDoors, pIndoor, pLevelDecorations, pParty, provider, pSoundVolumeLevels, pSpriteObjects, BLVDoor::pXOffsets, BLVDoor::pYOffsets, BLVDoor::pZOffsets, SoundInfo::sample, OpenALSoundProvider::SetListenerPosition(), SoundInfo::sName, SOUND_Invalid, uCurrentlyLoadedLevelType, uMasterVolume, uNumActors, uNumSpriteObjects, Party::vPosition и Log::Warning().
Используется в CastSpellInfoHelpers::_427E01_cast_spell(), Player::_42ECB5_PlayerAttacksActor(), _46BFFA_update_spell_fx(), Player::AddItem(), Party::AddItemToParty(), Actor::AI_SpellAttack(), Arena_SelectionFightLevel(), ArenaFight(), BackToHouseMenu(), BLV_ProcessPartyActions(), BLV_UpdateDoors(), Player::CanCastSpell(), CloseWindowBackground(), SpriteObject::Create_Splash_Object(), CreateParty_EventLoop(), DamagePlayerFromMonster(), stru262_TurnBased::End(), Application::Menu::EventLoop(), Application::Game::EventLoop(), EventProcessor(), Game_QuitGameWhilePlaying(), Game_StartNewGameWhilePlaying(), GuildDialog(), GUIWindow_Spellbook::GUIWindow_Spellbook(), GUIWindow_Book::InitializeFonts(), InitializeSpellBookTextures(), Inventory_ItemPopupAndAlchemy(), LoadGame(), ODM_ProcessPartyActions(), OnCloseSpellBook(), OnPaperdollLeftClick(), Chest::Open(), GUIWindow_Spellbook::OpenSpellbookPage(), Player::PlayAwardSound(), PlayHouseSound(), ArcomageGame::PlaySound(), Actor::PlaySound(), Player::PlaySound(), PlaySpellSound(), PrepareToLoadODM(), Player::ReceiveSpecialAttackEffect(), GUIWindow_Book::Release(), stru262_TurnBased::Start(), sub_4B6478(), TempleDialog(), TravelByTransport(), UI_OnVkKeyDown(), ui_play_gold_anim(), UIShop_Buy_Identify_Repair(), GUIWindow_QuestBook::Update(), GUIWindow_JournalBook::Update(), GUIWindow_AutonotesBook::Update(), GUIWindow_MapBook::Update(), GUIWindow_RestWindow::Update(), OnButtonClick::Update(), OnButtonClick2::Update(), OnButtonClick3::Update(), OnButtonClick4::Update(), OnSaveLoad::Update(), OnCancel::Update(), OnCancel2::Update(), OnCancel3::Update(), Player::UseItem_DrinkPotion_etc() и UseNPCSkill().
Граф вызовов:
Граф вызова функции:| void AudioPlayer::UpdateSounds | ( | ) |
См. определение в файле AudioPlayer.cpp строка 322
Перекрестные ссылки pi, pParty, provider, OpenALSoundProvider::SetListenerPosition(), OpenALSoundProvider::SetOrientation(), Party::sRotationX, Party::sRotationY и Party::vPosition.
Используется в Application::Game::GameLoop().
Граф вызовов:
Граф вызова функции:| void AudioPlayer::StopChannels | ( | int | uStartChannel, |
| int | uEndChannel | ||
| ) |
См. определение в файле AudioPlayer.cpp строка 331
Используется в GUIWindow_Book::BasicBookInitialization(), stru262_TurnBased::End(), EnterHouse(), Application::Game::EventLoop(), EventProcessor(), Application::Game::GameLoop(), GameUI_InitializeDialogue(), CastSpellInfo::GetCastSpellInInventoryWindow(), GUIWindow_AutonotesBook::GUIWindow_AutonotesBook(), GUIWindow_CalendarBook::GUIWindow_CalendarBook(), GUIWindow_CharacterRecord::GUIWindow_CharacterRecord(), GUIWindow_House::GUIWindow_House(), GUIWindow_JournalBook::GUIWindow_JournalBook(), GUIWindow_MapBook::GUIWindow_MapBook(), GUIWindow_QuestBook::GUIWindow_QuestBook(), GUIWindow_QuickReference::GUIWindow_QuickReference(), GUIWindow_Transition::GUIWindow_Transition(), GUIWindow_Book::InitializeFonts(), InitializeSpellBookTextures(), GUIWindow_MainMenu::Loop(), Application::Game::Loop(), Application::Menu::MenuLoop(), MessWithChannels(), ODM_UpdateUserInputAndOther(), OnCastTargetedSpell::OnCastTargetedSpell(), Application::GameWindowHandler::OnDeactivated(), Chest::Open(), PartyCreationUI_LoopInternal(), PlayerTurn(), ArcomageGame::PrepareArcomage(), PrepareToLoadRestUI(), Engine::ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows(), stru262_TurnBased::Start(), sub_4451A8_press_any_key(), Transition_StopSound_Autosave(), TravelByTransport() и UI_OnMouseRightClick().
Граф вызова функции:| void AudioPlayer::LoadAudioSnd | ( | ) |
См. определение в файле AudioPlayer.cpp строка 342
Перекрестные ссылки fAudioSnd, logger, MakeDataPath(), MakeLower(), mSoundHeaders, AudioPlayer::SoundHeader::uCompressedSize, AudioPlayer::SoundHeader::uDecompressedSize, AudioPlayer::SoundHeader::uFileOffset и Log::Warning().
Используется в Initialize().
Граф вызовов:
Граф вызова функции:| void AudioPlayer::MessWithChannels | ( | ) |
См. определение в файле AudioPlayer.cpp строка 320
Перекрестные ссылки pAudioPlayer и StopChannels().
Граф вызовов:| bool AudioPlayer::FindSound | ( | const std::string & | pName, |
| struct AudioPlayer::SoundHeader * | header | ||
| ) |
См. определение в файле AudioPlayer.cpp строка 385
Перекрестные ссылки MakeLower() и mSoundHeaders.
Используется в LoadSound().
Граф вызовов:
Граф вызова функции:| PMemBuffer AudioPlayer::LoadSound | ( | const std::string & | pSoundName | ) |
См. определение в файле AudioPlayer.cpp строка 438
Перекрестные ссылки AllocMemBuffer(), fAudioSnd, FindSound(), logger, AudioPlayer::SoundHeader::uCompressedSize, AudioPlayer::SoundHeader::uDecompressedSize, AudioPlayer::SoundHeader::uFileOffset, zlib::Uncompress() и Log::Warning().
Используется в PlaySound().
Граф вызовов:
Граф вызова функции:| PMemBuffer AudioPlayer::LoadSound | ( | int | uSoundID | ) |
См. определение в файле AudioPlayer.cpp строка 401
Перекрестные ссылки AllocMemBuffer(), fAudioSnd, logger, mSoundHeaders, AudioPlayer::SoundHeader::uCompressedSize, AudioPlayer::SoundHeader::uDecompressedSize, AudioPlayer::SoundHeader::uFileOffset, zlib::Uncompress() и Log::Warning().
Граф вызовов:| void AudioPlayer::PlaySpellSound | ( | unsigned int | spell, |
| unsigned int | pid | ||
| ) |
См. определение в файле AudioPlayer.cpp строка 476
Перекрестные ссылки PlaySound() и word_4EE088_sound_ids.
Используется в CastSpellInfoHelpers::_427E01_cast_spell(), _46BFFA_update_spell_fx(), Actor::AI_SpellAttack(), EventCastSpell() и Application::Game::EventLoop().
Граф вызовов:
Граф вызова функции:
|
protected |
См. определение в файле AudioPlayer.h строка 147
Используется в Initialize(), MusicPlayTrack(), PlaySound() и StopAll().
|
protected |
См. определение в файле AudioPlayer.h строка 148
Используется в Initialize() и MusicPlayTrack().
|
protected |
См. определение в файле AudioPlayer.h строка 149
Используется в Initialize(), PlaySound() и SetMasterVolume().
|
protected |
См. определение в файле AudioPlayer.h строка 150
Используется в MusicGetVolume(), MusicPause(), MusicPlayTrack(), MusicResume(), MusicStop() и SetMusicVolume().
|
protected |
См. определение в файле AudioPlayer.h строка 151
Используется в LoadAudioSnd() и LoadSound().
|
protected |
См. определение в файле AudioPlayer.h строка 152
Используется в FindSound(), LoadAudioSnd() и LoadSound().