Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4506 in orxonox.OLD for orxonox/trunk/src/lib/sound/sound_engine.h


Ignore:
Timestamp:
Jun 4, 2005, 12:49:24 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: building the SoundEngine as a lib

File:
1 edited

Legend:

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

    r4504 r4506  
    1111
    1212
    13 #define SOUND_DOPPLER_FACTOR     0.001          //!< A factor for the audible doppler effect
    14 #define SOUND_DOPPLER_VELOCITY   5000000     //!< A factor for the TravelSpeed of sound
     13#define SOUND_DOPPLER_FACTOR       0.001          //!< A factor for the audible doppler effect
     14#define SOUND_DOPPLER_VELOCITY     5000000        //!< A factor for the TravelSpeed of sound
    1515
    1616// FORWARD DEFINITION
     
    2626  ~SoundBuffer(void);
    2727
    28   /** \returns the ID of the buffer */
     28  /** \returns the ID of the buffer used in this SoundBuffer */
    2929  inline ALuint getID(void) { return this->bufferID; }
    3030
    3131 private:
    32   ALuint bufferID;              //!< The address of the Buffer.
     32  ALuint        bufferID;             //!< The address of the Buffer.
    3333
    34   ALsizei size;                 //!< The size of the Buffer.
    35   ALboolean loop;               //!< loop information.
     34  ALsizei       size;                 //!< The size of the Buffer.
     35  ALboolean     loop;                 //!< loop information.
    3636};
    3737
     
    4242  SoundSource(SoundBuffer* buffer, PNode* sourceNode = NULL);
    4343  ~SoundSource(void);
    44 
     44 
    4545  // user interaction
    4646  void play();
     
    4848  void pause();
    4949  void rewind();
    50 
     50 
    5151  // development functions
    5252  /** \returns The ID of this Source */
     
    6060
    6161 private:
    62   ALuint sourceID;              //!< The ID of the Source
    63   SoundBuffer* buffer;          //!< The buffer to play in this source.
    64   PNode* sourceNode;            //!< The SourceNode represente the position/velocity... of this source.
     62  ALuint           sourceID;              //!< The ID of the Source
     63  SoundBuffer*     buffer;                //!< The buffer to play in this source.
     64  PNode*           sourceNode;            //!< The SourceNode represente the position/velocity... of this source.
    6565};
    6666
     
    9999 private:
    100100  SoundEngine(void);
    101   static SoundEngine* singletonRef;
     101  static SoundEngine*      singletonRef;             //!< Reference to this class
    102102
    103103
    104   PNode* listener;                 //!< The listener of the Scene
    105   tList<SoundBuffer>* bufferList;  //!< A list of buffers
    106   tList<SoundSource>* sourceList;  //!< A list for all the sources in the scene.
     104  PNode*                   listener;                 //!< The listener of the Scene
     105  tList<SoundBuffer>*      bufferList;               //!< A list of buffers
     106  tList<SoundSource>*      sourceList;               //!< A list for all the sources in the scene.
    107107
    108108};
Note: See TracChangeset for help on using the changeset viewer.