summaryrefslogtreecommitdiffstats
path: root/src/sound/oalsound/alsound.h
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-01-09 23:19:10 +0100
committererihel <erihel@gmail.com>2013-01-09 23:19:10 +0100
commit983373f150f6b122e92f054fa1b8e1af60b21197 (patch)
tree2b11bd93c1a3ba10d5f3663785077fe43d8119e2 /src/sound/oalsound/alsound.h
parent5a6b3f005a83363d323e00b499756d6ecc277574 (diff)
downloadcolobot-983373f150f6b122e92f054fa1b8e1af60b21197.tar.gz
colobot-983373f150f6b122e92f054fa1b8e1af60b21197.tar.bz2
colobot-983373f150f6b122e92f054fa1b8e1af60b21197.zip
* Fixed pitch calculation (sound in cut scenes will work as well as robot tracks sound)
* Fixed applying effects to sounds * Changed volume to range 0.0-1.0 except for values in UI
Diffstat (limited to 'src/sound/oalsound/alsound.h')
-rw-r--r--src/sound/oalsound/alsound.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound/oalsound/alsound.h b/src/sound/oalsound/alsound.h
index 7d24ba6..7aeec90 100644
--- a/src/sound/oalsound/alsound.h
+++ b/src/sound/oalsound/alsound.h
@@ -42,7 +42,7 @@ class ALSound : public CSoundInterface
bool Create(bool b3D);
bool Cache(Sound, std::string);
- bool RetEnable();
+ bool GetEnable();
void SetSound3D(bool bMode);
bool GetSound3D();
@@ -86,7 +86,7 @@ class ALSound : public CSoundInterface
bool mEnabled;
bool m3D;
bool mMute;
- int mAudioVolume;
+ float mAudioVolume;
ALCdevice* audioDevice;
ALCcontext* audioContext;
std::map<Sound, Buffer*> mSounds;