1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +01:00

Added Sound struct

This commit is contained in:
Timmy Sjöstedt 2016-05-24 21:46:45 +02:00
parent cd0109af82
commit f43e13359a

View File

@ -4,6 +4,8 @@
#include <AL/al.h>
#include <AL/alc.h>
#include <map>
#include <string>
#include <vector>
#include <SFML/Audio.hpp>
@ -49,13 +51,21 @@ private:
ALuint buffer;
};
struct Sound
{
SoundSource source;
SoundBuffer buffer;
bool isLoaded = false;
};
bool initializeOpenAL();
ALCcontext* alContext;
ALCdevice* alDevice;
std::map<std::string, Sound> sounds;
std::vector<PlayingSound> sounds;
sf::SoundStream* backgroundNoise;
};
};