Added hover and click sounds. Cleanup in SoundSystem.

This commit is contained in:
Stiffly
2015-10-15 11:43:10 +02:00
parent 816ff6a8e1
commit bb23d5a8c4
6 changed files with 30 additions and 10 deletions
+5
View File
@@ -6,6 +6,11 @@ dd::Sound::Sound(std::string path)
m_Path = path;
}
dd::Sound::~Sound()
{
alDeleteBuffers(1, &m_Buffer);
}
ALuint dd::Sound::LoadFile(std::string path)
{
if (m_BufferCache.find(path) != m_BufferCache.end()) {