Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2009, 5:28:13 PM (16 years ago)
Author:
youngk
Message:

Ambient Sounds are now locationally triggerable, i.e if the player comes close to an object, it's own ambient sound starts playing, while the sound of the outer object is paused. Upon leaving proximity of that object, the old sound is resumed. —> Triggerable by changing active state.

File:
1 edited

Legend:

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

    r5962 r5982  
    7070    }
    7171
     72    void BaseSound::replay()
     73    {
     74        BaseSound::play();
     75    }
     76
    7277    void BaseSound::stop()
    7378    {
     
    105110    void BaseSound::setPlayOnLoad(bool val)
    106111    {
    107         this->bPlayOnLoad_ = true;
    108         this->play();
     112        this->bPlayOnLoad_ = val;
     113        if(val)
     114        {
     115            this->play();
     116        }
    109117    }
    110118
Note: See TracChangeset for help on using the changeset viewer.