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/AmbientSound.h

    r6186 r6307  
    3535#include "core/BaseObject.h"
    3636#include "sound/BaseSound.h"
     37#include "network/synchronisable/Synchronisable.h"
    3738
    3839namespace orxonox
     
    4344     *
    4445     */
    45     class _OrxonoxExport AmbientSound : public BaseSound, public BaseObject
     46    class _OrxonoxExport AmbientSound : public BaseSound, public BaseObject, public Synchronisable
    4647    {
    4748        friend class SoundManager;
     
    6364        virtual void setAmbientSource(const std::string& source);
    6465        const std::string& getAmbientSource() const { return this->ambientSource_; }
     66        inline void ambientSourceChanged(){ this->setAmbientSource(this->ambientSource_); }
    6567
    6668    private:
     
    6870        void doStop();
    6971        void doPause();
     72       
     73        void registerVariables();
    7074
    7175        std::string ambientSource_; //!< Analogous to source_, but mood independent
Note: See TracChangeset for help on using the changeset viewer.