Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 29, 2015, 6:18:30 PM (9 years ago)
Author:
landauf
Message:

cleanup: no need to pass/return WeakPtrs to/from functions. normal pointers are enough.

Location:
code/branches/core7/src/orxonox/sound
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/orxonox/sound/SoundManager.cc

    r10555 r10557  
    419419    }
    420420
    421     void SoundManager::fadeIn(const StrongPtr<AmbientSound>& sound)
     421    void SoundManager::fadeIn(AmbientSound* sound)
    422422    {
    423423        // If we're already fading out --> remove that
     
    435435    }
    436436
    437     void SoundManager::fadeOut(const StrongPtr<AmbientSound>& sound)
     437    void SoundManager::fadeOut(AmbientSound* sound)
    438438    {
    439439        // If we're already fading in --> remove that
  • code/branches/core7/src/orxonox/sound/SoundManager.h

    r10555 r10557  
    106106    private:
    107107        void processCrossFading(float dt);
    108         void fadeIn(const StrongPtr<AmbientSound>& sound);
    109         void fadeOut(const StrongPtr<AmbientSound>& sound);
     108        void fadeIn(AmbientSound* sound);
     109        void fadeOut(AmbientSound* sound);
    110110
    111111        void checkFadeStepValidity();
Note: See TracChangeset for help on using the changeset viewer.