Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 24, 2006, 1:15:47 PM (18 years ago)
Author:
bensch
Message:

LoadResource should work… testing soon

File:
1 edited

Legend:

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

    r9803 r9804  
    2020  public:
    2121    SoundBuffer();
     22    SoundBuffer(const SoundBuffer& buffer) { this->data = buffer.data; }
     23    SoundBuffer(const SoundBufferData::Pointer& dataPointer) { this->data = dataPointer; };
    2224    SoundBuffer(const std::string& fileName);
    2325
     
    3234    inline ALuint getID() const { return this->data->getID(); }
    3335
     36    /** @returns the DataPointer */
     37    const SoundBufferData::Pointer& dataPointer() const { return data; }
     38    /** @param dataPointer the data to acquire @brief Buffer shall acquire dataPointers data */
     39    void acquireData(const SoundBufferData::Pointer& dataPointer)  { data = dataPointer; };
    3440  private:
    3541    SoundBufferData::Pointer    data;
Note: See TracChangeset for help on using the changeset viewer.