summaryrefslogtreecommitdiffstats
path: root/src/sound/oalsound/alsound.h
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-01-14 22:55:16 +0100
committererihel <erihel@gmail.com>2013-01-14 22:55:16 +0100
commit58f35e44ae17a8d4c55b1b19696245666d3697d3 (patch)
tree26d593e1af405939f8c8c44c605a657c15aceb6c /src/sound/oalsound/alsound.h
parent35faf628cf8085a9262c2b89999cacdd3f5bee79 (diff)
downloadcolobot-58f35e44ae17a8d4c55b1b19696245666d3697d3.tar.gz
colobot-58f35e44ae17a8d4c55b1b19696245666d3697d3.tar.bz2
colobot-58f35e44ae17a8d4c55b1b19696245666d3697d3.zip
* Removed alut
* Using libsndfile to load sounds and music * Added support for playing music files
Diffstat (limited to 'src/sound/oalsound/alsound.h')
-rw-r--r--src/sound/oalsound/alsound.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sound/oalsound/alsound.h b/src/sound/oalsound/alsound.h
index 7aeec90..4651e04 100644
--- a/src/sound/oalsound/alsound.h
+++ b/src/sound/oalsound/alsound.h
@@ -22,7 +22,7 @@
#include <map>
#include <string>
-#include <AL/alut.h>
+#include <AL/al.h>
#include "common/iman.h"
#include "common/logger.h"
@@ -87,8 +87,10 @@ class ALSound : public CSoundInterface
bool m3D;
bool mMute;
float mAudioVolume;
- ALCdevice* audioDevice;
- ALCcontext* audioContext;
+ float mMusicVolume;
+ ALCdevice* mDevice;
+ ALCcontext* mContext;
std::map<Sound, Buffer*> mSounds;
std::map<int, Channel*> mChannels;
+ Channel *mCurrentMusic;
};