Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2005, 3:22:37 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/openAL: added flush-function i talked of in the Wiki

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/openAL/src/lib/sound/sound_engine.h

    r4206 r4207  
    5151
    5252  // development functions
    53   /** \returns The ID of the Source */
    54   inline ALuint getID(void) { return this->sourceID; }
     53  /** \returns The ID of this Source */
     54  inline ALuint getID(void) const { return this->sourceID; }
     55  /** \returns the SoundBuffer of this Source */
     56  inline SoundBuffer* getBuffer(void) const { return this->buffer; }
    5557  /** \returns the SourceNode of this Source */
    56   inline PNode* getNode(void) { return this->sourceNode;}
     58  inline PNode* getNode(void) const { return this->sourceNode;}
    5759
    5860  void setRolloffFactor(ALfloat rolloffFactor);
     
    8284  void removeSource(SoundSource* source);
    8385
    84 
    8586  void update(void);
    8687
     88  void flushUnusedBuffers(void);
    8789
    8890  // error handling:
Note: See TracChangeset for help on using the changeset viewer.