Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2010, 3:16:12 PM (14 years ago)
Author:
scheusso
Message:

merged sound4 into sound5

Location:
code/branches/sound5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound5

  • code/branches/sound5/src/orxonox/sound/BaseSound.cc

    r6502 r6506  
    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
     
    153152        this->volume_ = clamp(vol, 0.0f, 1.0f);
    154153        if (this->volume_ != vol)
    155             COUT(2) << "Sound warning: volume out of range, clamping value." << std::endl;
     154            COUT(2) << "Sound: Warning: volume out of range, clamping value." << std::endl;
    156155        this->updateVolume();
    157156    }
     
    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    }
     
    180178        if (pitch > 2 || pitch < 0.5f)
    181179        {
    182             COUT(2) << "Sound warning: pitch out of range, cropping value." << std::endl;
     180            COUT(2) << "Sound: Warning: pitch out of range, cropping value." << std::endl;
    183181            pitch = pitch > 2.0f ? 2.0f : pitch;
    184182            pitch = pitch < 0.5f ? 0.5f : pitch;
     
    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.