Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5386 in orxonox.OLD for trunk/src/lib/sound/sound_buffer.h


Ignore:
Timestamp:
Oct 15, 2005, 11:44:14 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: split open the soundengine into
sound_engine: the Handler
sound_source: the sources
sound_buffers: playback-buffers

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sound/sound_buffer.h

    r5382 r5386  
    11/*!
    2  * @file proto_class.h
    3  * @brief Definition of ...
     2 * @file sound_buffer.h
     3 * @brief Definition of the sound-buffer-class
    44*/
    55
    6 #ifndef _PROTO_CLASS_H
    7 #define _PROTO_CLASS_H
     6#ifndef _SOUND_BUFFER_H
     7#define _SOUND_BUFFER_H
    88
    99#include "base_object.h"
     10#include "alincl.h"
    1011
    1112// FORWARD DECLARATION
    1213
     14//! A class that represents a datastructure to play Sounds.
     15class SoundBuffer : public BaseObject
     16{
     17  public:
     18    SoundBuffer(const char* fileName);
     19    ~SoundBuffer();
    1320
     21    /** @returns the ID of the buffer used in this SoundBuffer */
     22    inline ALuint getID() const { return this->bufferID; }
    1423
    15 //! A class for ...
    16 class ProtoClass : public BaseObject {
     24  private:
     25    ALuint        bufferID;             //!< The address of the Buffer.
    1726
    18  public:
    19   ProtoClass();
    20   virtual ~ProtoClass();
    21 
    22 
    23  private:
    24 
     27    ALsizei       size;                 //!< The size of the Buffer.
     28    ALboolean     loop;                 //!< loop information.
    2529};
    2630
    27 #endif /* _PROTO_CLASS_H */
     31#endif /* _SOUND_BUFFER_H */
Note: See TracChangeset for help on using the changeset viewer.