Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 14, 2010, 2:19:32 PM (14 years ago)
Author:
erwin
Message:

Some more atempts to fix maybe it's platform specific…

File:
1 edited

Legend:

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

    r6506 r6726  
    142142        if (ALint error = alGetError())
    143143            COUT(2) << "Sound: Warning: Setting source parameters to 0 failed: " << getALErrorString(error) << std::endl;
    144         assert(this->soundBuffer_ != NULL);
    145         alSourcei(this->audioSource_, AL_BUFFER, this->soundBuffer_->getBuffer());
     144        if(this->soundBuffer_ != NULL) {
     145            alSourcei(this->audioSource_, AL_BUFFER, this->soundBuffer_->getBuffer());
     146        }
    146147        if (ALuint error = alGetError())
    147148            COUT(1) << "Sound: Error: Could not set buffer \"" << this->source_ << "\": " << getALErrorString(error) << std::endl;
Note: See TracChangeset for help on using the changeset viewer.