Story sound. Tom could be improved.
This commit is contained in:
Binary file not shown.
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user