Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2010, 5:45:16 PM (14 years ago)
Author:
youngk
Message:

Committing a few minor changes to some files. They affect: Keyboard input on the Mac; Introduction of new Moods and debugging of Mac sound.

Location:
code/branches/ois_update/src/orxonox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ois_update/src/orxonox/MoodManager.cc

    r7284 r7767  
    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/ois_update/src/orxonox/sound/AmbientSound.cc

    r6417 r7767  
    4848
    4949        // Ambient sounds always fade in
    50         this->setVolume(0);
     50        this->setVolume(0.0f);
    5151        this->registerVariables();
    5252    }
  • code/branches/ois_update/src/orxonox/sound/SoundManager.cc

    r7701 r7767  
    8383        SetConfigValue(bDisableSound_, false);
    8484        if (bDisableSound_)
    85             ThrowException(InitialisationAborted, "Sound: Not loading at all");
    86 
     85            ThrowException(InitialisationAborted, "Sound: Not loading at all");       
    8786        if (!alutInitWithoutContext(NULL, NULL))
    8887            ThrowException(InitialisationFailed, "Sound Error: ALUT initialisation failed: " << alutGetErrorString(alutGetError()));
     
    132131        GameMode::setPlaysSound(true);
    133132        Loki::ScopeGuard resetPlaysSoundGuard = Loki::MakeGuard(&GameMode::setPlaysSound, false);
    134 
     133       
    135134        // Get some information about the sound
    136135        if (const char* version = alGetString(AL_VERSION))
    137             COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl;
     136            COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl;           
    138137        if (const char* vendor = alGetString(AL_VENDOR))
    139138            COUT(4) << "Sound: --- OpenAL Vendor : " << vendor << std::endl;
Note: See TracChangeset for help on using the changeset viewer.