Story sound. Tom could be improved.

This commit is contained in:
Stiffly
2015-10-20 16:12:55 +02:00
parent ec509358b1
commit c23c7e4d8e
4 changed files with 10 additions and 0 deletions
Binary file not shown.
+4
View File
@@ -5,6 +5,7 @@
#include "GUI/Slider.h" #include "GUI/Slider.h"
#include "Core/ResourceManager.h" #include "Core/ResourceManager.h"
#include "Game/GUI/ELoadingFrameComplete.h" #include "Game/GUI/ELoadingFrameComplete.h"
#include "Sound/EPlaySound.h"
namespace dd namespace dd
{ {
@@ -56,6 +57,9 @@ public:
e.FrameName = Name(); e.FrameName = Name();
e.Frame = this; e.Frame = this;
EventBroker->Publish(e); EventBroker->Publish(e);
Events::PlaySound se;
se.FilePath = "Sounds/jap-story.wav";
EventBroker->Publish(se);
} }
} }
} }
+1
View File
@@ -41,6 +41,7 @@ private:
const std::string MENU_BGM = "Sounds/BGM/eastern-music.wav"; const std::string MENU_BGM = "Sounds/BGM/eastern-music.wav";
const std::string GAME_BGM = "Sounds/BGM/under-the-sea-n.wav"; const std::string GAME_BGM = "Sounds/BGM/under-the-sea-n.wav";
const std::string WATER_BGM = "Sounds/BGM/water-flowing.wav"; const std::string WATER_BGM = "Sounds/BGM/water-flowing.wav";
const std::string STORY_VOICE = "Sounds/jap-story.wav";
float m_BGMMasterVolume = 1.f; float m_BGMMasterVolume = 1.f;
float m_SFXMasterVolume = 1.f; float m_SFXMasterVolume = 1.f;
+5
View File
@@ -188,6 +188,11 @@ bool dd::Systems::SoundSystem::OnContact(const dd::Events::Contact &event)
bool dd::Systems::SoundSystem::OnGameStart(const dd::Events::GameStart &event) bool dd::Systems::SoundSystem::OnGameStart(const dd::Events::GameStart &event)
{ {
{
dd::Events::StopSound e;
e.FilePath = STORY_VOICE;
EventBroker->Publish(e);
}
{ {
dd::Events::StopSound e; dd::Events::StopSound e;
e.FilePath = MENU_BGM; e.FilePath = MENU_BGM;