Changeset 8071 for code/branches/kicklib/src/orxonox
- Timestamp:
- Mar 14, 2011, 3:53:38 AM (14 years ago)
- Location:
- code/branches/kicklib
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib
-
code/branches/kicklib/src/orxonox/MoodManager.cc
r7284 r8071 50 50 51 51 // Checking for the existence of the folder for the default mood 52 const std::string& path = "ambient/" + MoodManager::defaultMood_ + "/.";53 if (!Resource::exists(path ))52 const std::string& patha = "ambient/" + MoodManager::defaultMood_ + "/."; 53 if (!Resource::exists(patha)) 54 54 { 55 55 // TODO: Non-fatal error handling (non-critical resource missing) 56 56 COUT(2) << "Mood Warning: Folder for default mood (" << MoodManager::defaultMood_ << ") does not exist!" << std::endl; 57 57 } 58 59 // @TODO 60 // Creating a vector of the available moods to enable easy mood selection by Lua/CEGUI 58 61 } 59 62 -
code/branches/kicklib/src/orxonox/OrxonoxPrereqs.h
r7854 r8071 53 53 # endif 54 54 # endif 55 #elif defined ( ORXONOX_GCC_VISIBILITY ) 55 # define _OrxonoxPrivate 56 #elif defined (ORXONOX_GCC_VISIBILITY) 56 57 # define _OrxonoxExport __attribute__ ((visibility("default"))) 58 # define _OrxonoxPrivate __attribute__ ((visibility("hidden"))) 57 59 #else 58 60 # define _OrxonoxExport 61 # define _OrxonoxPrivate 59 62 #endif 60 63 -
code/branches/kicklib/src/orxonox/sound/AmbientSound.cc
r7929 r8071 42 42 43 43 // Ambient sounds always fade in 44 this->setVolume(0 );44 this->setVolume(0.0f); 45 45 } 46 46 -
code/branches/kicklib/src/orxonox/sound/BaseSound.cc
r7858 r8071 31 31 #include <cassert> 32 32 #include <vector> 33 34 #ifdef ORXONOX_PLATFORM_APPLE 35 #include "openal/al.h" 36 #else 33 37 #include <al.h> 38 #endif 34 39 35 40 #include "util/Math.h" -
code/branches/kicklib/src/orxonox/sound/SoundBuffer.cc
r6502 r8071 30 30 #include "SoundBuffer.h" 31 31 32 #if defined(ORXONOX_PLATFORM_APPLE) 33 #include <ALUT/alut.h> 34 #else 32 35 #include <AL/alut.h> 36 #endif 33 37 #include <vorbis/vorbisfile.h> 34 38 -
code/branches/kicklib/src/orxonox/sound/SoundManager.cc
r7858 r8071 31 31 #include "SoundManager.h" 32 32 33 #if defined(__APPLE__) 34 #include <ALUT/alut.h> 35 #else 33 36 #include <AL/alut.h> 37 #endif 34 38 #include <utility> 35 39 #include <loki/ScopeGuard.h> … … 73 77 this->bDestructorCalled_ = false; 74 78 79 // Clear error messages (might be problematic on some systems) 80 alGetError(); 81 alutGetError(); 82 75 83 // See whether we even want to load 76 84 bool bDisableSound_ = false; 77 85 SetConfigValue(bDisableSound_, false); 78 86 if (bDisableSound_) 79 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 80 87 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 81 88 if (!alutInitWithoutContext(NULL, NULL)) 82 89 ThrowException(InitialisationFailed, "Sound Error: ALUT initialisation failed: " << alutGetErrorString(alutGetError())); … … 126 133 GameMode::setPlaysSound(true); 127 134 Loki::ScopeGuard resetPlaysSoundGuard = Loki::MakeGuard(&GameMode::setPlaysSound, false); 128 135 129 136 // Get some information about the sound 130 137 if (const char* version = alGetString(AL_VERSION)) 131 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 138 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 132 139 if (const char* vendor = alGetString(AL_VENDOR)) 133 140 COUT(4) << "Sound: --- OpenAL Vendor : " << vendor << std::endl; -
code/branches/kicklib/src/orxonox/sound/SoundStreamer.cc
r7163 r8071 27 27 #include "SoundStreamer.h" 28 28 29 #ifdef ORXONOX_PLATFORM_APPLE 30 #include "openal/al.h" 31 #else 29 32 #include <al.h> 33 #endif 34 30 35 #include <vorbis/vorbisfile.h> 31 36 #include "SoundManager.h" -
code/branches/kicklib/src/orxonox/sound/WorldSound.cc
r7284 r8071 30 30 #include "WorldSound.h" 31 31 32 #if defined(__APPLE__) 33 #include <ALUT/alut.h> 34 #else 32 35 #include <AL/alut.h> 36 #endif 33 37 #include "util/Math.h" 34 38 #include "core/CoreIncludes.h"
Note: See TracChangeset
for help on using the changeset viewer.