Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2009, 12:46:24 AM (15 years ago)
Author:
erwin
Message:

first attempt to implement sounds for pong, only score sound is working here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/sound/SoundBase.cc

    r3078 r3108  
    9797                alSourcei(this->source_, AL_LOOPING, AL_FALSE);
    9898            alSourcePlay(this->source_);
     99
     100            if(alGetError() != AL_NO_ERROR)
     101            {
     102                 COUT(2) << "Sound: OpenAL: Error playin sound " << this->source_ << std::endl;
     103            }
    99104        }
    100105    }
     
    161166        alGenSources(1, &this->source_);
    162167        alSourcei(this->source_, AL_BUFFER, this->buffer_);
    163 //         ALenum
    164168        if(alGetError() != AL_NO_ERROR) {
    165169            COUT(2) << "Sound: OpenAL: Error loading sample file: " << filename << std::endl;
Note: See TracChangeset for help on using the changeset viewer.