Linking OpenAL.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// Created by Adam on 2015-09-09.
|
||||
//
|
||||
|
||||
#ifndef DAYDREAM_EPLAYSOUND_H
|
||||
#define DAYDREAM_EPLAYSOUND_H
|
||||
|
||||
#include <string>
|
||||
#include "EventBroker.h"
|
||||
|
||||
|
||||
namespace dd
|
||||
{
|
||||
|
||||
namespace Events
|
||||
{
|
||||
|
||||
struct PlaySound
|
||||
{
|
||||
std::string path;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif //DAYDREAM_EPLAYSOUND_H
|
||||
@@ -5,11 +5,15 @@
|
||||
#ifndef DAYDREAM_SOUND_H
|
||||
#define DAYDREAM_SOUND_H
|
||||
|
||||
#include "../../deps/include/AL/al.h"
|
||||
#include "../../deps/include/AL/alc.h"
|
||||
|
||||
#include "Core/EKeyDown.h"
|
||||
#include "Core/EventBroker.h"
|
||||
#include "Core/System.h"
|
||||
#include "Core/World.h"
|
||||
|
||||
|
||||
namespace dd
|
||||
{
|
||||
namespace Systems
|
||||
@@ -22,13 +26,12 @@ public:
|
||||
|
||||
void Init();
|
||||
|
||||
|
||||
private:
|
||||
dd::EventRelay<Sound, dd::Events::KeyDown> m_EKeyDown;
|
||||
|
||||
bool OnKeyDown(const dd::Events::KeyDown &event);
|
||||
|
||||
void HelloWorld();
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user