Initial commit

This commit is contained in:
Borys Kostka
2022-07-19 19:39:33 +02:00
commit ecbf661953
234 changed files with 470267 additions and 0 deletions

26
SoundHandler.h Normal file
View File

@@ -0,0 +1,26 @@
#include <AL/al.h>
extern "C"
{
#include "Sound.h"
};
class SoundHandler
{
public:
bool playMusic(const char filename[], bool loop)
{
music = loadSound(filename);
playSound(0, loop, music);
}
bool playSoundEffect(const char filename[], bool loop)
{
music = loadSound(filename);
playSound(1, loop, music);
}
private:
ALuint music;
ALuint soundEffect;
};