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:
parent
cd0109af82
commit
f43e13359a
@ -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;
|
||||
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user