Changeset 6046 for code/branches/sound3/src/orxonox/sound/SoundManager.h
- Timestamp:
- Nov 11, 2009, 5:55:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound3/src/orxonox/sound/SoundManager.h
r6031 r6046 42 42 * 43 43 */ 44 class _OrxonoxExport SoundManager : public Singleton<SoundManager> 44 class _OrxonoxExport SoundManager : public Singleton<SoundManager>, public OrxonoxClass 45 45 { 46 46 friend class Singleton<SoundManager>; … … 49 49 ~SoundManager(); 50 50 51 void update(const Clock &time); 52 void setConfigValues(void); 53 51 54 void setListenerPosition(const Vector3& position); 52 55 void setListenerOrientation(const Quaternion& orientation); 53 void registerAmbientSound(BaseSound* newAmbient); 54 void unregisterAmbientSound(BaseSound* currentAmbient); 56 57 void registerAmbientSound(AmbientSound* newAmbient); 58 void unregisterAmbientSound(AmbientSound* currentAmbient); 55 59 const std::string& getAmbientPath(const std::string& source); 60 void fadeInAmbientSound(float dt); 61 void fadeOutAmbientSound(float dt); 62 void checkFadeStepValidity(void); 56 63 57 64 private: 58 65 ALCdevice* device_; 59 66 ALCcontext* context_; 60 std::list<BaseSound*> ambientSounds_; 61 std::string lastReqPath; 67 68 std::list<AmbientSound*> ambientSounds_; 69 70 float fadeStep_; //per second 71 std::list<std::pair<AmbientSound*, float> > fadeInList_; 72 std::list<std::pair<AmbientSound*, float> > fadeOutList_; 73 74 std::string lastReqPath_; 62 75 63 76 static SoundManager* singletonPtr_s;
Note: See TracChangeset
for help on using the changeset viewer.