Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 14, 2009, 1:17:34 PM (15 years ago)
Author:
rgrieder
Message:

Reapplying erwin's changes from r5939.

Location:
code/branches/sound3/src/orxonox/sound
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound3/src/orxonox/sound/BaseSound.cc

    r5929 r5946  
    6565            if (alGetError() != AL_NO_ERROR)
    6666            {
    67                  COUT(2) << "Sound: OpenAL: Error playin sound " << this->audioSource_ << std::endl;
     67                 COUT(2) << "Sound: OpenAL: Error playing sound " << this->audioSource_ << std::endl;
    6868            }
    6969        }
     
    147147            {
    148148                COUT(2) << "Sound: Trying fallback ogg loader" << std::endl;
    149                 this->audioBuffer_ = loadOggFile();
     149                this->audioBuffer_ = this->loadOggFile();
    150150            }
    151151
  • code/branches/sound3/src/orxonox/sound/SoundManager.cc

    r5929 r5946  
    4545    {
    4646        if (!alutInitWithoutContext(NULL,NULL))
    47             ThrowException(InitialisationFailed, "OpenAL ALUT error: " << alutGetErrorString(alutGetError()));
     47            ThrowException(InitialisationFailed, "Sound: OpenAL ALUT error: " << alutGetErrorString(alutGetError()));
    4848        Loki::ScopeGuard alutExitGuard = Loki::MakeGuard(&alutExit);
    4949
    50         COUT(3) << "OpenAL: Opening sound device..." << std::endl;
     50        COUT(3) << "Sound: OpenAL: Opening sound device..." << std::endl;
    5151        this->device_ = alcOpenDevice(NULL);
    5252        if (this->device_ == NULL)
    5353        {
    54             COUT(0) << "OpenaAL: Could not open sound device. Have you installed OpenAL?" << std::endl;
     54            COUT(0) << "Sound: OpenaAL: Could not open sound device. Have you installed OpenAL?" << std::endl;
    5555#ifdef ORXONOX_PLATFORM_WINDOWS
    56             COUT(0) << "Just getting the DLL with the dependencies is not enough for Windows (esp. Windows 7)!" << std::endl;
     56            COUT(0) << "Sound: Just getting the DLL with the dependencies is not enough for Windows (esp. Windows 7)!" << std::endl;
    5757#endif
    58             ThrowException(InitialisationFailed, "OpenAL error: Could not open sound device.");
     58            ThrowException(InitialisationFailed, "Sound: OpenAL error: Could not open sound device.");
    5959        }
    6060        Loki::ScopeGuard closeDeviceGuard = Loki::MakeGuard(&alcCloseDevice, this->device_);
    6161
    62         COUT(3) << "OpenAL: Sound device opened" << std::endl;
     62        COUT(3) << "Sound: OpenAL: Sound device opened" << std::endl;
    6363        this->context_ = alcCreateContext(this->device_, NULL);
    6464        if (this->context_ == NULL)
    65             ThrowException(InitialisationFailed, "OpenAL error: Could not create sound context");
     65            ThrowException(InitialisationFailed, "Sound: OpenAL error: Could not create sound context");
    6666        Loki::ScopeGuard desroyContextGuard = Loki::MakeGuard(&alcDestroyContext, this->context_);
    6767
    6868        if (alcMakeContextCurrent(this->context_) == AL_TRUE)
    69             COUT(3) << "OpenAL: Context " << this->context_ << " loaded" << std::endl;
     69            COUT(3) << "Sound: OpenAL: Context " << this->context_ << " loaded" << std::endl;
    7070
    7171        COUT(4) << "Sound: OpenAL ALUT version: " << alutGetMajorVersion() << "." << alutGetMinorVersion() << std::endl;
     
    7373        const char* str = alutGetMIMETypes(ALUT_LOADER_BUFFER);
    7474        if (str == NULL)
    75             COUT(2) << "OpenAL ALUT error: " << alutGetErrorString(alutGetError()) << std::endl;
     75            COUT(2) << "Sound: OpenAL ALUT error: " << alutGetErrorString(alutGetError()) << std::endl;
    7676        else
    77             COUT(4) << "OpenAL ALUT supported MIME types: " << str << std::endl;
     77            COUT(4) << "Sound: OpenAL ALUT supported MIME types: " << str << std::endl;
    7878
    7979        GameMode::setPlaysSound(true);
Note: See TracChangeset for help on using the changeset viewer.