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
+22
View File
@@ -0,0 +1,22 @@
#pragma once
#include "vector.h"
class Sound
{
public:
Sound(const char* inWavPath, bool inLooping);
~Sound();
void SetPos(const Vec3f& inPos, const Vec3f& inVel);
void Play();
void Pause();
void Stop();
private:
unsigned int buffer_id;
unsigned int source_id;
bool is_looping;
};