Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 14, 2011, 3:53:38 AM (14 years ago)
Author:
rgrieder
Message:

Merged ois_update branch (before it was renamed to mac_osx) into kicklib branch.

Location:
code/branches/kicklib
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib

  • code/branches/kicklib/src/orxonox/MoodManager.cc

    r7284 r8071  
    5050
    5151        // 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))
    5454        {
    5555            // TODO: Non-fatal error handling (non-critical resource missing)
    5656            COUT(2) << "Mood Warning: Folder for default mood (" << MoodManager::defaultMood_ << ") does not exist!" << std::endl;
    5757        }
     58       
     59        // @TODO
     60        // Creating a vector of the available moods to enable easy mood selection by Lua/CEGUI       
    5861    }
    5962
  • code/branches/kicklib/src/orxonox/OrxonoxPrereqs.h

    r7854 r8071  
    5353#    endif
    5454#  endif
    55 #elif defined ( ORXONOX_GCC_VISIBILITY )
     55#  define _OrxonoxPrivate
     56#elif defined (ORXONOX_GCC_VISIBILITY)
    5657#  define _OrxonoxExport  __attribute__ ((visibility("default")))
     58#  define _OrxonoxPrivate __attribute__ ((visibility("hidden")))
    5759#else
    5860#  define _OrxonoxExport
     61#  define _OrxonoxPrivate
    5962#endif
    6063
  • code/branches/kicklib/src/orxonox/sound/AmbientSound.cc

    r7929 r8071  
    4242
    4343        // Ambient sounds always fade in
    44         this->setVolume(0);
     44        this->setVolume(0.0f);
    4545    }
    4646
  • code/branches/kicklib/src/orxonox/sound/BaseSound.cc

    r7858 r8071  
    3131#include <cassert>
    3232#include <vector>
     33
     34#ifdef ORXONOX_PLATFORM_APPLE
     35#include "openal/al.h"
     36#else
    3337#include <al.h>
     38#endif
    3439
    3540#include "util/Math.h"
  • code/branches/kicklib/src/orxonox/sound/SoundBuffer.cc

    r6502 r8071  
    3030#include "SoundBuffer.h"
    3131
     32#if defined(ORXONOX_PLATFORM_APPLE)
     33#include <ALUT/alut.h>
     34#else
    3235#include <AL/alut.h>
     36#endif
    3337#include <vorbis/vorbisfile.h>
    3438
  • code/branches/kicklib/src/orxonox/sound/SoundManager.cc

    r7858 r8071  
    3131#include "SoundManager.h"
    3232
     33#if defined(__APPLE__)
     34#include <ALUT/alut.h>
     35#else
    3336#include <AL/alut.h>
     37#endif
    3438#include <utility>
    3539#include <loki/ScopeGuard.h>
     
    7377        this->bDestructorCalled_ = false;
    7478
     79        // Clear error messages (might be problematic on some systems)
     80        alGetError();
     81        alutGetError();
     82
    7583        // See whether we even want to load
    7684        bool bDisableSound_ = false;
    7785        SetConfigValue(bDisableSound_, false);
    7886        if (bDisableSound_)
    79             ThrowException(InitialisationAborted, "Sound: Not loading at all");
    80 
     87            ThrowException(InitialisationAborted, "Sound: Not loading at all");       
    8188        if (!alutInitWithoutContext(NULL, NULL))
    8289            ThrowException(InitialisationFailed, "Sound Error: ALUT initialisation failed: " << alutGetErrorString(alutGetError()));
     
    126133        GameMode::setPlaysSound(true);
    127134        Loki::ScopeGuard resetPlaysSoundGuard = Loki::MakeGuard(&GameMode::setPlaysSound, false);
    128 
     135       
    129136        // Get some information about the sound
    130137        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;           
    132139        if (const char* vendor = alGetString(AL_VENDOR))
    133140            COUT(4) << "Sound: --- OpenAL Vendor : " << vendor << std::endl;
  • code/branches/kicklib/src/orxonox/sound/SoundStreamer.cc

    r7163 r8071  
    2727#include "SoundStreamer.h"
    2828
     29#ifdef ORXONOX_PLATFORM_APPLE
     30#include "openal/al.h"
     31#else
    2932#include <al.h>
     33#endif
     34
    3035#include <vorbis/vorbisfile.h>
    3136#include "SoundManager.h"
  • code/branches/kicklib/src/orxonox/sound/WorldSound.cc

    r7284 r8071  
    3030#include "WorldSound.h"
    3131
     32#if defined(__APPLE__)
     33#include <ALUT/alut.h>
     34#else
    3235#include <AL/alut.h>
     36#endif
    3337#include "util/Math.h"
    3438#include "core/CoreIncludes.h"
Note: See TracChangeset for help on using the changeset viewer.