Changeset 8073 for code/branches/kicklib/src/orxonox
- Timestamp:
- Mar 14, 2011, 4:08:06 AM (14 years ago)
- Location:
- code/branches/kicklib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib
- Property svn:mergeinfo changed
/code/branches/mac_osx (added) merged: 7789,7933-7934,8042-8049,8054-8056,8059-8060,8065,8069-8070,8072
- Property svn:mergeinfo changed
-
code/branches/kicklib/src/orxonox/MoodManager.cc
r8071 r8073 50 50 51 51 // Checking for the existence of the folder for the default mood 52 const std::string& path a= "ambient/" + MoodManager::defaultMood_ + "/.";53 if (!Resource::exists(path a))52 const std::string& path = "ambient/" + MoodManager::defaultMood_ + "/."; 53 if (!Resource::exists(path)) 54 54 { 55 55 // TODO: Non-fatal error handling (non-critical resource missing) -
code/branches/kicklib/src/orxonox/sound/BaseSound.cc
r8071 r8073 31 31 #include <cassert> 32 32 #include <vector> 33 34 #ifdef ORXONOX_PLATFORM_APPLE35 #include "openal/al.h"36 #else37 33 #include <al.h> 38 #endif39 34 40 35 #include "util/Math.h" -
code/branches/kicklib/src/orxonox/sound/SoundBuffer.cc
r8071 r8073 30 30 #include "SoundBuffer.h" 31 31 32 #if defined(ORXONOX_PLATFORM_APPLE) 33 #include <ALUT/alut.h> 34 #else 35 #include <AL/alut.h> 36 #endif 32 #include <alut.h> 37 33 #include <vorbis/vorbisfile.h> 38 34 -
code/branches/kicklib/src/orxonox/sound/SoundManager.cc
r8071 r8073 31 31 #include "SoundManager.h" 32 32 33 #if defined(__APPLE__)34 #include <ALUT/alut.h>35 #else36 #include <AL/alut.h>37 #endif38 33 #include <utility> 34 #include <alut.h> 39 35 #include <loki/ScopeGuard.h> 40 36 … … 85 81 SetConfigValue(bDisableSound_, false); 86 82 if (bDisableSound_) 87 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 83 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 88 84 if (!alutInitWithoutContext(NULL, NULL)) 89 85 ThrowException(InitialisationFailed, "Sound Error: ALUT initialisation failed: " << alutGetErrorString(alutGetError())); … … 133 129 GameMode::setPlaysSound(true); 134 130 Loki::ScopeGuard resetPlaysSoundGuard = Loki::MakeGuard(&GameMode::setPlaysSound, false); 135 131 136 132 // Get some information about the sound 137 133 if (const char* version = alGetString(AL_VERSION)) 138 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 134 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 139 135 if (const char* vendor = alGetString(AL_VENDOR)) 140 136 COUT(4) << "Sound: --- OpenAL Vendor : " << vendor << std::endl; -
code/branches/kicklib/src/orxonox/sound/SoundStreamer.cc
r8071 r8073 27 27 #include "SoundStreamer.h" 28 28 29 #ifdef ORXONOX_PLATFORM_APPLE30 #include "openal/al.h"31 #else32 29 #include <al.h> 33 #endif34 35 30 #include <vorbis/vorbisfile.h> 36 31 #include "SoundManager.h" -
code/branches/kicklib/src/orxonox/sound/WorldSound.cc
r8071 r8073 30 30 #include "WorldSound.h" 31 31 32 #if defined(__APPLE__) 33 #include <ALUT/alut.h> 34 #else 35 #include <AL/alut.h> 36 #endif 32 #include <alut.h> 33 37 34 #include "util/Math.h" 38 35 #include "core/CoreIncludes.h"
Note: See TracChangeset
for help on using the changeset viewer.