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/SoundBase.cc

    r3013 r3055  
    148148            if(filename.find("ogg", 0) != std::string::npos)
    149149            {
     150                COUT(2) << "Sound: Trying fallback ogg loader" << std::endl;
    150151                this->buffer_ = loadOggFile(filename);
    151152            }
    152153
    153             if(this->buffer_ == AL_NONE)
     154            if(this->buffer_ == AL_NONE)
     155            {
     156                COUT(2) << "Sound: fallback ogg loader failed: " << alutGetErrorString(alutGetError()) << std::endl;
    154157                return false;
     158            }
    155159        }
    156160
     
    158162        alSourcei(this->source_, AL_BUFFER, this->buffer_);
    159163        if(alGetError() != AL_NO_ERROR) {
    160             COUT(2) << "Sound: OpenAL: Error loading sample file" << std::endl;
     164            COUT(2) << "Sound: OpenAL: Error loading sample file: " << filename << std::endl;
    161165            return false;
    162166        }
     
    172176    ALuint SoundBase::loadOggFile(std::string filename)
    173177    {
    174         COUT(2) << "Sound: Trying fallback ogg loader";
    175 
    176178        char inbuffer[4096];
    177179        std::vector<char> outbuffer;
     
    207209            }
    208210        }
    209        
     211
    210212        ov_clear(&vf);
    211213
Note: See TracChangeset for help on using the changeset viewer.