WIP added msnu bgm again

This commit is contained in:
Stiffly
2015-10-22 11:12:35 +02:00
parent 16560a86b3
commit 01ff8763b8
2 changed files with 8 additions and 8 deletions
+7 -7
View File
@@ -6,12 +6,12 @@ dd::Systems::SoundSystem::~SoundSystem()
for (auto &bgm : m_BGMSourcesToBuffers) {
alSourceStop(bgm.first);
alDeleteSources(1, &bgm.first);
bgm.second->~Sound();
//bgm.second->~Sound();
}
for (auto &sfx : m_SFXSourcesToBuffers) {
alSourceStop(sfx.first);
alDeleteSources(1, &sfx.first);
sfx.second->~Sound();
//sfx.second->~Sound();
}
m_BGMSourcesToBuffers.clear();
m_SFXSourcesToBuffers.clear();
@@ -46,11 +46,11 @@ void dd::Systems::SoundSystem::Initialize()
m_BGMMasterVolume = ResourceManager::Load<ConfigFile>("Config.ini")->GetValue<float>("Audio.BGMVolume", 1.f);
//TODO: Move this
// Events::PlaySound e;
// e.FilePath = MENU_BGM;
// e.IsAmbient = true;
// e.Gain = 0.2f;
// EventBroker->Publish(e);
Events::PlaySound e;
e.FilePath = MENU_BGM;
e.IsAmbient = true;
e.Gain = 0.2f;
EventBroker->Publish(e);
}
void dd::Systems::SoundSystem::Update(double dt)