Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2009, 1:53:13 PM (15 years ago)
Author:
erwin
Message:

added mainmenu ambient sound

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound2/src/orxonox/sound/SoundManager.cc

    r3013 r3055  
    5252        else
    5353        {
    54             COUT(4) << "Sound: OpenAL ALUT version:" << alutGetMajorVersion() << "." << alutGetMinorVersion() << std::endl;
    55             COUT(4) << "Sound: OpenAL ALUT supported MIME types:" << alutGetMIMETypes(ALUT_LOADER_BUFFER) << std::endl;
     54            COUT(4) << "Sound: OpenAL ALUT version: " << alutGetMajorVersion() << "." << alutGetMinorVersion() << std::endl;
     55            COUT(4) << "Sound: OpenAL ALUT supported MIME types: " << alutGetMIMETypes(ALUT_LOADER_BUFFER) << std::endl;
    5656            if(SoundManager::device_s == NULL)
    5757            {
     
    7777                {
    7878                    if(alcMakeContextCurrent(this->context_) == AL_TRUE)
    79                         COUT(3) << "Sound: OpenAL: Context " << this->context_ << "loaded" << std::endl;
     79                        COUT(3) << "Sound: OpenAL: Context " << this->context_ << " loaded" << std::endl;
    8080                }
    8181            }
     
    124124    void SoundManager::tick(float dt)
    125125    {
     126        if (!CameraManager::getInstancePtr())
     127            return;
     128
    126129        // update listener position
    127130        Camera* camera = CameraManager::getInstance().getActiveCamera();
Note: See TracChangeset for help on using the changeset viewer.