changeset 592:fc5a781adf2a

* Added getVolume() to the SoundManager.
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 14 Aug 2010 12:40:05 +0000
parents 378b588216d6
children 637384c8de04
files engine/core/audio/soundmanager.h engine/core/audio/soundmanager.i
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 		 */
--- 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();