- Timestamp:
- Dec 13, 2009, 12:11:40 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/SoundManager.h
r6322 r6332 92 92 void unregisterAmbientSound(AmbientSound* oldAmbient); 93 93 void pauseAmbientSound(AmbientSound* ambient); 94 94 95 95 void setVolume(float vol, SoundType::Value type); 96 96 float getVolume(SoundType::Value type); // tolua_export 97 97 98 98 void toggleMute(SoundType::Value type); // tolua_export 99 99 bool getMute(SoundType::Value type); // tolua_export … … 117 117 void checkAmbientVolumeValidity(void); 118 118 void checkEffectsVolumeValidity(void); 119 119 120 120 float checkVolumeRange(float vol); 121 121 122 122 void updateVolume(SoundType::Value type); 123 123 124 124 void setVolumeInternal(float vol, SoundType::Value type); 125 125 float getVolumeInternal(SoundType::Value type); … … 128 128 ALCdevice* device_; 129 129 ALCcontext* context_; 130 130 131 131 typedef std::list<std::pair<AmbientSound*, bool> > AmbientList; 132 132 AmbientList ambientSounds_; 133 133 134 134 float crossFadeStep_; //!< Absolute change per second (0.1 means 10% of the nominal volume) for cross fading 135 135 std::list<AmbientSound*> fadeInList_; 136 136 std::list<AmbientSound*> fadeOutList_; 137 137 138 138 float soundVolume_; 139 139 float ambientVolume_; … … 150 150 unsigned int maxSources_; 151 151 std::vector<ALuint> soundSources_; 152 152 153 153 static SoundManager* singletonPtr_s; 154 154 }; // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.