Linking OpenAL.

This commit is contained in:
Stiffly
2015-09-14 14:45:44 +02:00
parent 49a2100d4e
commit ed5881ec54
15 changed files with 2529 additions and 6 deletions
+13 -1
View File
@@ -18,6 +18,18 @@ bool dd::Systems::Sound::OnKeyDown(const dd::Events::KeyDown &event)
{
// #define GLFW_KEY_S 83
if(event.KeyCode == 83){
HelloWorld();
//HelloWorld();
//Init openAL------------------
ALCdevice* device; alcOpenDevice(NULL);
ALCcontext* context;
if(device){
context = alcCreateContext(device, NULL);
alcMakeContextCurrent(context);
}
else{
LOG_ERROR("OpenAL failed to initialize");
}
}
}