Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 15, 2009, 3:43:06 PM (15 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/BaseSound.h

    r6046 r6069  
    2626 *
    2727 */
     28
    2829#ifndef _BaseSound_H__
    2930#define _BaseSound_H__
     
    3233
    3334#include <string>
    34 #include <OgreSharedPtr.h>
    3535#include <OgreDataStream.h>
    3636#include "core/OrxonoxClass.h"
     
    5151        virtual void play();
    5252        virtual void stop();
    53         void pause();
     53        virtual void pause();
    5454
    5555        bool isPlaying();
     
    5858
    5959        virtual void setSource(const std::string& source);
    60         const std::string& getSource() { return this->source_; }
     60        virtual const std::string& getSource() const { return this->source_; }
    6161
    62         bool getPlayOnLoad() { return this->bPlayOnLoad_; }
    63         void setPlayOnLoad(bool val);
     62        void setVolume(float vol);
     63        float getVolume() const { return this->volume_; }
    6464
    65         bool getLoop() { return this->bLoop_; }
     65        bool getPlayOnLoad() const   { return this->bPlayOnLoad_; }
     66        void setPlayOnLoad(bool val) { this->bPlayOnLoad_ = val; }
     67
     68        bool getLoop() const   { return this->bLoop_; }
    6669        void setLoop(bool val) { this->bLoop_ = val; }
    6770
    68         ALuint getALAudioSource(void);
     71        //ALuint getALAudioSource(void);
    6972
    7073    protected:
     
    7679
    7780    private:
    78         std::string source_;
    79         bool bPlayOnLoad_;
    80         bool bLoop_;
    81         DataStreamPtr dataStream_;
     81        std::string     source_;
     82        float           volume_;
     83        bool            bPlayOnLoad_;
     84        bool            bLoop_;
     85        DataStreamPtr   dataStream_;
    8286    };
    8387}
Note: See TracChangeset for help on using the changeset viewer.