Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 3, 2005, 1:29:42 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: classList: returns const lists

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

Legend:

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

    r5856 r5885  
    137137  if (this->sourceList != NULL)
    138138  {
    139     list<BaseObject*>::iterator source;
     139    list<BaseObject*>::const_iterator source;
    140140    for (source = this->sourceList->begin(); source != this->sourceList->end(); source++)
    141141    {
     
    182182  if (likely(this->sourceList != NULL))
    183183  {
    184     list<BaseObject*>::iterator sourceIT;
     184    list<BaseObject*>::const_iterator sourceIT;
    185185    SoundSource* source;
    186186    for (sourceIT = this->sourceList->begin(); sourceIT != this->sourceList->end(); sourceIT++)
  • trunk/src/lib/sound/sound_engine.h

    r5819 r5885  
    6666
    6767  private:
    68     static SoundEngine*      singletonRef;             //!< Reference to this class
     68    static SoundEngine*            singletonRef;             //!< Reference to this class
    6969
    70     ALCdevice*               device;                   //!< the used audio-device.
    71     ALCcontext*              context;                  //!< the context, currently in use.
     70    ALCdevice*                     device;                   //!< the used audio-device.
     71    ALCcontext*                    context;                  //!< the context, currently in use.
    7272
    73     float                    musicVolume;              //!< the maximum volume of the music in % (0f,1f]
    74     float                    effectsVolume;            //!< the maximum volume of sound-effects in % (0f,1f]
    75     PNode*                   listener;                 //!< The listener of the Scene
     73    float                          musicVolume;              //!< the maximum volume of the music in % (0f,1f]
     74    float                          effectsVolume;            //!< the maximum volume of sound-effects in % (0f,1f]
     75    PNode*                         listener;                 //!< The listener of the Scene
    7676
    77     std::list<BaseObject*>*  bufferList;               //!< A list of buffers
    78     std::list<BaseObject*>*  sourceList;               //!< A list for all the sources in the scene.
     77    const std::list<BaseObject*>*  bufferList;               //!< A list of buffers
     78    const std::list<BaseObject*>*  sourceList;               //!< A list for all the sources in the scene.
    7979
    8080
Note: See TracChangeset for help on using the changeset viewer.