Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4746 in orxonox.OLD for orxonox/trunk/src/lib/sound


Ignore:
Timestamp:
Jul 1, 2005, 12:48:48 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: changed (void) → ()

Location:
orxonox/trunk/src/lib/sound
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/sound/sound_engine.cc

    r4605 r4746  
    7979}
    8080
    81 SoundBuffer::~SoundBuffer(void)
     81SoundBuffer::~SoundBuffer()
    8282{
    8383  SoundEngine::getInstance()->removeBuffer(this);
     
    115115   \brief deletes a SoundSource
    116116*/
    117 SoundSource::~SoundSource(void)
     117SoundSource::~SoundSource()
    118118{
    119119  SoundEngine::getInstance()->removeSource(this);
     
    306306   \brief updates all The positions, Directions and Velocities of all Sounds
    307307*/
    308 void SoundEngine::update(void)
     308void SoundEngine::update()
    309309{
    310310
     
    351351   \brief Removes all the Buffers that are not anymore needed by any Sources
    352352*/
    353 void SoundEngine::flushUnusedBuffers(void)
     353void SoundEngine::flushUnusedBuffers()
    354354{
    355355  tIterator<SoundBuffer>* bufferIterator = this->bufferList->getIterator();
     
    376376   \brief SourceEngine::flushAllBuffers
    377377*/
    378 void SoundEngine::flushAllBuffers(void)
     378void SoundEngine::flushAllBuffers()
    379379{
    380380    tIterator<SoundBuffer>* bufferIterator = this->bufferList->getIterator();
     
    391391   \brief initializes Audio in general
    392392*/
    393 bool SoundEngine::initAudio(void)
     393bool SoundEngine::initAudio()
    394394{
    395395  ALenum result;
  • orxonox/trunk/src/lib/sound/sound_engine.h

    r4597 r4746  
    2424 public:
    2525  SoundBuffer(const char* fileName);
    26   ~SoundBuffer(void);
     26  ~SoundBuffer();
    2727
    2828  /** \returns the ID of the buffer used in this SoundBuffer */
    29   inline ALuint getID(void) { return this->bufferID; }
     29  inline ALuint getID() { return this->bufferID; }
    3030
    3131 private:
     
    4141 public:
    4242  SoundSource(SoundBuffer* buffer, PNode* sourceNode = NULL);
    43   ~SoundSource(void);
     43  ~SoundSource();
    4444
    4545  // user interaction
     
    5151  // development functions
    5252  /** \returns The ID of this Source */
    53   inline ALuint getID(void) const { return this->sourceID; }
     53  inline ALuint getID() const { return this->sourceID; }
    5454  /** \returns the SoundBuffer of this Source */
    55   inline SoundBuffer* getBuffer(void) const { return this->buffer; }
     55  inline SoundBuffer* getBuffer() const { return this->buffer; }
    5656  /** \returns the SourceNode of this Source */
    57   inline PNode* getNode(void) const { return this->sourceNode;}
     57  inline PNode* getNode() const { return this->sourceNode;}
    5858
    5959  void setRolloffFactor(ALfloat rolloffFactor);
     
    7171
    7272 public:
    73   virtual ~SoundEngine(void);
     73  virtual ~SoundEngine();
    7474  /** \returns a Pointer to the only object of this Class */
    75   inline static SoundEngine* getInstance(void) { if (!singletonRef) singletonRef = new SoundEngine();  return singletonRef; };
     75  inline static SoundEngine* getInstance() { if (!singletonRef) singletonRef = new SoundEngine();  return singletonRef; };
    7676
    7777  SoundSource* createSource(const char* fileName, PNode* sourceNode = NULL);
     
    8686  void removeSource(SoundSource* source);
    8787
    88   void update(void);
     88  void update();
    8989
    9090  // administrative
    91   void flushUnusedBuffers(void);
    92   void flushAllBuffers(void);
    93   bool initAudio(void);
     91  void flushUnusedBuffers();
     92  void flushAllBuffers();
     93  bool initAudio();
    9494
    9595  // error handling:
     
    9999
    100100 private:
    101   SoundEngine(void);
     101  SoundEngine();
    102102  static SoundEngine*      singletonRef;             //!< Reference to this class
    103103
Note: See TracChangeset for help on using the changeset viewer.