soundsystem upd

This commit is contained in:
Adam
2014-03-09 22:41:05 +01:00
parent 6be310d248
commit 40e4fc610f
2 changed files with 33 additions and 10 deletions
+6 -2
View File
@@ -9,6 +9,7 @@
#include <AL/al.h>
#include <AL/alc.h>
#include <windows.h>
#include <vector>
namespace Systems
{
@@ -23,8 +24,7 @@ public:
void OnComponentCreated(std::string type, std::shared_ptr<Component> component) override;
void PlaySound(std::shared_ptr<Components::SoundEmitter> emitter, std::string fileName);
void LoadFile(const char* fileName);
void CreateListener(int ID);
void CreateSource(int ID);
void CreateSource(int ID, float pos[3], ALboolean looping);
private:
ALCcontext* context;
char type[4];
@@ -34,6 +34,10 @@ private:
short bytesPerSample, bitsPerSample;
DWORD dataSize;
unsigned char* buf;
std::vector<ALuint> source;
};
}