From 6a57eabb145e5000427e38ab0c8d3bb435b2c596 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 6 Apr 2012 15:30:36 +0300 Subject: Handle failing openal init properly, add enable_sound and sound_volume settings --- src/sound.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sound.h') diff --git a/src/sound.h b/src/sound.h index c342f4e5e..c267a452f 100644 --- a/src/sound.h +++ b/src/sound.h @@ -58,6 +58,7 @@ public: const std::string &filedata) = 0; virtual void updateListener(v3f pos, v3f vel, v3f at, v3f up) = 0; + virtual void setListenerGain(float gain) = 0; // playSound functions return -1 on failure, otherwise a handle to the // sound. If name=="", call should be ignored without error. @@ -83,6 +84,7 @@ public: virtual bool loadSoundData(const std::string &name, const std::string &filedata) {return true;} void updateListener(v3f pos, v3f vel, v3f at, v3f up) {} + void setListenerGain(float gain) {} int playSound(const std::string &name, bool loop, float volume) {return 0;} int playSoundAt(const std::string &name, bool loop, -- cgit v1.2.3