Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/sound/sound_buffer.h @ 6387

Last change on this file since 6387 was 5386, checked in by bensch, 19 years ago

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

File size: 743 bytes
Line 
1/*!
2 * @file sound_buffer.h
3 * @brief Definition of the sound-buffer-class
4*/
5
6#ifndef _SOUND_BUFFER_H
7#define _SOUND_BUFFER_H
8
9#include "base_object.h"
10#include "alincl.h"
11
12// FORWARD DECLARATION
13
14//! A class that represents a datastructure to play Sounds.
15class SoundBuffer : public BaseObject
16{
17  public:
18    SoundBuffer(const char* fileName);
19    ~SoundBuffer();
20
21    /** @returns the ID of the buffer used in this SoundBuffer */
22    inline ALuint getID() const { return this->bufferID; }
23
24  private:
25    ALuint        bufferID;             //!< The address of the Buffer.
26
27    ALsizei       size;                 //!< The size of the Buffer.
28    ALboolean     loop;                 //!< loop information.
29};
30
31#endif /* _SOUND_BUFFER_H */
Note: See TracBrowser for help on using the repository browser.