diff --git a/src/game/Physics/PhysicsSystem.cpp b/src/game/Physics/PhysicsSystem.cpp index 180e7c8..2689d87 100755 --- a/src/game/Physics/PhysicsSystem.cpp +++ b/src/game/Physics/PhysicsSystem.cpp @@ -822,7 +822,7 @@ bool dd::Systems::PhysicsSystem::OnContact(const dd::Events::Contact &event) } Events::PlaySound se; - //Spawn a particle when a brick collides with somthing + //Spawn a particle when a brick collides with something Events::CreateParticleSequence e; e.EmitterLifeTime = 3; e.EmittingAngle = glm::half_pi(); diff --git a/src/game/Sound/SoundSystem.cpp b/src/game/Sound/SoundSystem.cpp index d8bd94d..0d3d8e7 100644 --- a/src/game/Sound/SoundSystem.cpp +++ b/src/game/Sound/SoundSystem.cpp @@ -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("Config.ini")->GetValue("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)