Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 15, 2009, 3:43:06 PM (16 years ago)
Author:
rgrieder
Message:

Detail changes in the sound classes.
Plus fixed the level sound problem (order of XML parameters was wrong).
There is still a large issue when changing an ambient sound source though.

File:
1 edited

Legend:

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

    r6046 r6069  
    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);
    4751        virtual ~AmbientSound();
    48 
    49         virtual void play();
    50         void replay();      // Continue playing without re-registering the sound
    51         virtual void stop();
    52         void doStop();
    53 
    54         virtual void setSource(const std::string& source);
    5552
    5653        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     
    5855        virtual void changedActivity();
    5956
     57        virtual void play();
     58        virtual void stop();
     59        virtual void pause();
     60
     61        virtual void setSource(const std::string& source);
    6062
    6163    private:
     64        void doPlay();      // Continue playing without re-registering the sound
     65        void doStop();
     66        void doPause();
    6267    };
    6368}
Note: See TracChangeset for help on using the changeset viewer.