OpenAl Werkt! en Setup enzo

This commit is contained in:
Aaldert
2016-06-05 23:49:06 +02:00
parent 47b4d9570d
commit 117010b9fe
18 changed files with 320 additions and 237 deletions
+25
View File
@@ -0,0 +1,25 @@
#pragma once
#include <vector>
#include <al.h>
#include <alc.h>
#include "vector.h"
#include "Sound.h"
class SoundSystem
{
public:
SoundSystem();
~SoundSystem();
void SetListener(const Vec3f& inPos, const Vec3f& inVel, const Vec3f& inOri);
unsigned int LoadSound(const char* inWavPath, bool inLooping);
Sound* GetSound(unsigned int inID);
private:
ALCdevice* device;
ALCcontext* context;
std::vector<Sound*> sounds;
};