Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2009, 2:15:43 PM (16 years ago)
Author:
rgrieder
Message:

Added audio source management. This should reduce the problems when loading too many sounds.
However if there are too many players shooting at the same time, some sounds may still not play.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/sound/AmbientSound.h

    r6307 r6322  
    5050    public:
    5151        AmbientSound(BaseObject* creator);
    52         virtual ~AmbientSound();
     52        ~AmbientSound();
    5353
    54         virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    55         virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
    56         virtual void changedActivity();
     54        void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     55        void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
     56        void changedActivity();
    5757
    58         virtual void play();
    59         virtual void stop();
    60         virtual void pause();
     58        void play();
     59        void stop();
     60        void pause();
    6161       
    62         virtual float getVolumeGain();
     62        float getVolumeGain();
    6363
    64         virtual void setAmbientSource(const std::string& source);
     64        void setAmbientSource(const std::string& source);
    6565        const std::string& getAmbientSource() const { return this->ambientSource_; }
    6666        inline void ambientSourceChanged(){ this->setAmbientSource(this->ambientSource_); }
Note: See TracChangeset for help on using the changeset viewer.