# HG changeset patch # User helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1281789605 0 # Node ID fc5a781adf2a810fcc1b0d2919dff6ed2952bf4e # Parent 378b588216d64a44994f80a48923f51e7d9b9c75 * Added getVolume() to the SoundManager. diff -r 378b588216d6 -r fc5a781adf2a engine/core/audio/soundmanager.h --- a/engine/core/audio/soundmanager.h Fri Aug 13 20:28:52 2010 +0000 +++ b/engine/core/audio/soundmanager.h Sat Aug 14 12:40:05 2010 +0000 @@ -80,6 +80,12 @@ } alListenerf(AL_GAIN, vol); } + + /** Return the Master Volume + */ + float getVolume() const{ + return m_volume; + } /** Mute */ diff -r 378b588216d6 -r fc5a781adf2a engine/core/audio/soundmanager.i --- a/engine/core/audio/soundmanager.i Fri Aug 13 20:28:52 2010 +0000 +++ b/engine/core/audio/soundmanager.i Sat Aug 14 12:40:05 2010 +0000 @@ -52,6 +52,7 @@ ALCcontext* getContext(); void setVolume(float vol); + float getVolume() const; void mute(); void unmute();