- Timestamp:
- Nov 30, 2009, 8:50:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/SoundManager.h
r6183 r6184 35 35 #include <string> 36 36 #include "util/Singleton.h" 37 #include "core/OrxonoxClass.h" 37 38 39 // tolua_begin 38 40 namespace orxonox 39 41 { … … 43 45 * 44 46 */ 45 class _OrxonoxExport SoundManager : public Singleton<SoundManager>, public OrxonoxClass 46 { 47 class _OrxonoxExport SoundManager 48 // tolua_end 49 : public Singleton<SoundManager>, public OrxonoxClass 50 { // tolua_export 47 51 friend class Singleton<SoundManager>; 48 52 … … 53 57 void preUpdate(const Clock& time); 54 58 void setConfigValues(); 59 60 static SoundManager& getInstance() { return Singleton<SoundManager>::getInstance(); } // tolua_export 55 61 56 62 void setListenerPosition(const Vector3& position); … … 60 66 void unregisterAmbientSound(AmbientSound* oldAmbient); 61 67 void pauseAmbientSound(AmbientSound* ambient); 68 69 void setAmbientVolume(float vol); // tolua_export 70 void setEffectsVolume(float vol); // tolua_export 71 void setVolume(float vol); // tolua_export 72 73 float getAmbientVolume(void); // tolua_export 74 float getEffectsVolume(void); // tolua_export 75 float getVolume(void); // tolua_export 62 76 63 77 private: … … 67 81 68 82 void checkFadeStepValidity(); 83 void checkVolumeValidity(); 84 void checkAmbientVolumeValidity(); 85 void checkEffectsVolumeValidity(); 86 87 void updateAmbientVolume(void); 88 void updateEffectsVolume(void); 89 void updateVolume(void); 69 90 70 91 ALCdevice* device_; … … 78 99 std::list<AmbientSound*> fadeOutList_; 79 100 101 float ambientVolume_; 102 float effectsVolume_; 103 float volume_; 104 80 105 static SoundManager* singletonPtr_s; 81 }; 82 } 106 }; // tolua_export 107 } // tolua_export 83 108 84 109 #endif /* _SoundManager_H__ */
Note: See TracChangeset
for help on using the changeset viewer.