removing unnecessary print

This commit is contained in:
Stiffly
2015-09-21 14:49:47 +02:00
parent 2a4c7c8b1a
commit 7e9e19039c
3 changed files with 2 additions and 19 deletions
+2 -8
View File
@@ -3,7 +3,8 @@
dd::Systems::SoundSystem::~SoundSystem()
{
//alDeleteSources(1, m_Source);
alSourcei(m_Source, AL_BUFFER, 0);
alDeleteSources(1, &m_Source);
}
void dd::Systems::SoundSystem::Initialize()
@@ -39,10 +40,8 @@ void dd::Systems::SoundSystem::Update(double dt)
bool dd::Systems::SoundSystem::OnPlaySFX(const dd::Events::PlaySFX &event)
{
m_Source = CreateSource();
//ALuint buffer = LoadFile(event.path); //change to resourcemanager load
Sound *sound = ResourceManager::Load<Sound>(event.path);
ALuint buffer = sound->Buffer();
alSourcei(m_Source, AL_BUFFER, buffer);
alSourcePlay(m_Source);
}
@@ -73,8 +72,3 @@ ALuint dd::Systems::SoundSystem::CreateSource()
return source;
}
ALuint dd::Systems::SoundSystem::LoadFile(std::string path)
{
/*Moved code*/
}