Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 11, 2009, 5:55:26 PM (16 years ago)
Author:
youngk
Message:

Made a big change to the sound system: Implemented cross-fading for multiple changing sources.
Compiles, however the game doesn't load sounds properly in the main menu and on entering a level.
It can load a sound via DistanceTrigger and fades in/out correctly, but second loading fails.

Please test.

File:
1 edited

Legend:

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

    r5982 r6046  
    7070    }
    7171
    72     void BaseSound::replay()
    73     {
    74         BaseSound::play();
    75     }
    76 
    7772    void BaseSound::stop()
    7873    {
     
    185180        if (this->bPlayOnLoad_)
    186181            this->play();
     182    }
     183
     184    ALuint BaseSound::getALAudioSource()
     185    {
     186        return audioSource_;
    187187    }
    188188
Note: See TracChangeset for help on using the changeset viewer.