Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 1, 2010, 6:43:54 PM (16 years ago)
Author:
rgrieder
Message:

Moved getALErrorString function from SoundManager.h to newly created SoundPrereqs.h file.
Also moved forward declarations to that file (from OrxonoxPrereqs.h).

File:
1 edited

Legend:

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

    r6417 r6435  
    9191            alSourcePlay(this->audioSource_);
    9292            if (int error = alGetError())
    93                 COUT(2) << "Sound: Error playing sound: " << SoundManager::getALErrorString(error) << std::endl;
     93                COUT(2) << "Sound: Error playing sound: " << getALErrorString(error) << std::endl;
    9494        }
    9595    }
     
    141141        alSource3f(this->audioSource_, AL_DIRECTION, 0, 0, 0);
    142142        if (ALint error = alGetError())
    143             COUT(2) << "Sound Warning: Setting source parameters to 0 failed: "
    144                     << SoundManager::getALErrorString(error) << std::endl;
     143            COUT(2) << "Sound Warning: Setting source parameters to 0 failed: " << getALErrorString(error) << std::endl;
    145144        assert(this->soundBuffer_ != NULL);
    146145        alSourcei(this->audioSource_, AL_BUFFER, this->soundBuffer_->getBuffer());
    147146        if (ALuint error = alGetError())
    148             COUT(1) << "Sound Error: Could not set buffer \"" << this->source_ << "\": " << SoundManager::getALErrorString(error) << std::endl;
     147            COUT(1) << "Sound Error: Could not set buffer \"" << this->source_ << "\": " << getALErrorString(error) << std::endl;
    149148    }
    150149
     
    164163            alSourcef(this->audioSource_, AL_GAIN, volume);
    165164            if (int error = alGetError())
    166                 COUT(2) << "Sound: Error setting volume to " << volume
    167                         << ": " << SoundManager::getALErrorString(error) << std::endl;
     165                COUT(2) << "Sound: Error setting volume to " << volume << ": " << getALErrorString(error) << std::endl;
    168166        }
    169167    }
     
    189187            alSourcef(this->audioSource_, AL_PITCH, pitch);
    190188            if (int error = alGetError())
    191                 COUT(2) << "Sound: Error setting pitch: " << SoundManager::getALErrorString(error) << std::endl;
     189                COUT(2) << "Sound: Error setting pitch: " << getALErrorString(error) << std::endl;
    192190        }
    193191    }
     
    234232            if (ALuint error = alGetError())
    235233            {
    236                 COUT(1) << "Sound Error: Could not set buffer \"" << source << "\": " << SoundManager::getALErrorString(error) << std::endl;
     234                COUT(1) << "Sound Error: Could not set buffer \"" << source << "\": " << getALErrorString(error) << std::endl;
    237235                return;
    238236            }
     
    242240            alSourcePlay(this->audioSource_);
    243241            if (int error = alGetError())
    244                 COUT(2) << "Sound: Error playing sound: " << SoundManager::getALErrorString(error) << std::endl;
     242                COUT(2) << "Sound: Error playing sound: " << getALErrorString(error) << std::endl;
    245243            if (this->isPaused())
    246244                alSourcePause(this->audioSource_);
Note: See TracChangeset for help on using the changeset viewer.