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:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib

  • 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;
Note: See TracChangeset for help on using the changeset viewer.