Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9804 in orxonox.OLD


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

LoadResource should work… testing soon

Location:
branches/new_class_id/src/lib/sound
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/sound/Makefile.am

    r9803 r9804  
    88                        sound_buffer.cc \
    99                        sound_buffer_data.cc \
     10                        resource_sound_buffer.cc \
    1011                        ogg_player.cc
    1112
     
    1415                 sound_buffer.h \
    1516                 sound_buffer_data.h \
     17                 resource_sound_buffer.h \
    1618                 ogg_player.h
  • branches/new_class_id/src/lib/sound/sound_buffer.cc

    r9803 r9804  
    1818#include "sound_buffer.h"
    1919
    20 #include "sound_engine.h"
    21 
    22 #include "sdlincl.h"
    23 #include <cassert>
    24 #include "debug.h"
    25 #include "sys/stat.h"
    26 #include "helper_functions.h"
    27 
    28 #ifdef HAVE_SDL_SDL_H
    29 #include <SDL/SDL.h>
    30 #include <SDL/SDL_endian.h>
    31 #else
    32 #include <SDL.h>
    33 #include <SDL_endian.h>
    34 #endif
    3520namespace OrxSound
    3621{
  • 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.