Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 22, 2009, 4:01:16 PM (16 years ago)
Author:
rgrieder
Message:

Merged sound3 branch to presentation2.

Location:
code/branches/presentation2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2

  • code/branches/presentation2/src/orxonox/sound/AmbientSound.h

    r5929 r6117  
    2222 *   Author:
    2323 *      Reto Grieder
     24 *      Kevin Young
    2425 *   Co-authors:
    2526 *      ...
    2627 *
    2728 */
     29
    2830#ifndef _AmbientSound_H__
    2931#define _AmbientSound_H__
     
    4345    class _OrxonoxExport AmbientSound : public BaseSound, public BaseObject
    4446    {
     47        friend class SoundManager;
     48
    4549    public:
    4650        AmbientSound(BaseObject* creator);
     
    4953        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5054        virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
     55        virtual void changedActivity();
     56
     57        virtual void play();
     58        virtual void stop();
     59        virtual void pause();
     60
     61        virtual void setAmbientSource(const std::string& source);
     62        const std::string& getAmbientSource() const { return this->ambientSource_; }
    5163
    5264    private:
     65        void doPlay();
     66        void doStop();
     67        void doPause();
     68
     69        std::string ambientSource_; //!< Analogous to source_, but mood independent
    5370    };
    5471}
Note: See TracChangeset for help on using the changeset viewer.