Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 24, 2006, 12:58:19 PM (19 years ago)
Author:
bensch
Message:

Ported SoundBuffer to match the Data-Paradigm

File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/sound/sound_buffer_data.h

    r9801 r9803  
    11/*!
    2  * @file sound_buffer.h
    3  * @brief Definition of the sound-buffer-class
     2 * @file sound_buffer_data.h
     3 * @brief Definition of the sound-buffer-datacontainer-class
    44*/
    55
    6 #ifndef _SOUND_BUFFER_H
    7 #define _SOUND_BUFFER_H
     6#ifndef _SOUND_BUFFER_DATA_H
     7#define _SOUND_BUFFER_DATA_H
    88
    99#include "base_object.h"
    1010#include "alincl.h"
     11#include "util/count_pointer.h"
    1112
    1213// FORWARD DECLARATION
     
    1617{
    1718  //! A class that represents a datastructure to play Sounds.
    18   class SoundBuffer : public BaseObject
     19  class SoundBufferData : public BaseObject
    1920  {
    20     ObjectListDeclaration(SoundBuffer);
     21    ObjectListDeclaration(SoundBufferData);
    2122  public:
    22     SoundBuffer(const std::string& fileName);
    23     virtual ~SoundBuffer();
     23    typedef CountPointer<SoundBufferData> Pointer;
    2424
     25  public:
     26    SoundBufferData();
     27    virtual ~SoundBufferData();
     28
     29    bool load(const std::string& fileName);
    2530    bool loadWAV(const std::string& fileName);
    2631    bool loadOGG(const std::string& fileName);
     
    3944  };
    4045}
    41 #endif /* _SOUND_BUFFER_H */
     46#endif /* _SOUND_BUFFER_DATA_H */
Note: See TracChangeset for help on using the changeset viewer.