Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2009, 10:09:27 PM (14 years ago)
Author:
scheusso
Message:

Approach to make sounds synchronisable (not yet working)

File:
1 edited

Legend:

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

    r6285 r6307  
    4646        , bPooling_(false)
    4747        , volume_(1.0)
    48         , bLoop_(false)
     48        , bLooping_(false)
    4949        , state_(Stopped)
    5050        , pitch_ (1.0)
     
    151151    void BaseSound::setLooping(bool val)
    152152    {
    153         this->bLoop_ = val;
     153        this->bLooping_ = val;
    154154        if (GameMode::playsSound() && alIsSource(this->audioSource_))
    155155            alSourcei(this->audioSource_, AL_LOOPING, (val ? AL_TRUE : AL_FALSE));
     
    204204        if (ALuint error = alGetError())
    205205        {
    206             COUT(1) << "Sound Error: Could not load file \"" << source << "\": " << SoundManager::getALErrorString << std::endl;
     206            COUT(1) << "Sound Error: Could not load file \"" << source << "\": " << SoundManager::getALErrorString(error) << std::endl;
    207207            return;
    208208        }
Note: See TracChangeset for help on using the changeset viewer.