Changeset 9804 in orxonox.OLD for branches/new_class_id/src/lib
- Timestamp:
- Sep 24, 2006, 1:15:47 PM (18 years ago)
- 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 8 8 sound_buffer.cc \ 9 9 sound_buffer_data.cc \ 10 resource_sound_buffer.cc \ 10 11 ogg_player.cc 11 12 … … 14 15 sound_buffer.h \ 15 16 sound_buffer_data.h \ 17 resource_sound_buffer.h \ 16 18 ogg_player.h -
branches/new_class_id/src/lib/sound/sound_buffer.cc
r9803 r9804 18 18 #include "sound_buffer.h" 19 19 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_H29 #include <SDL/SDL.h>30 #include <SDL/SDL_endian.h>31 #else32 #include <SDL.h>33 #include <SDL_endian.h>34 #endif35 20 namespace OrxSound 36 21 { -
branches/new_class_id/src/lib/sound/sound_buffer.h
r9803 r9804 20 20 public: 21 21 SoundBuffer(); 22 SoundBuffer(const SoundBuffer& buffer) { this->data = buffer.data; } 23 SoundBuffer(const SoundBufferData::Pointer& dataPointer) { this->data = dataPointer; }; 22 24 SoundBuffer(const std::string& fileName); 23 25 … … 32 34 inline ALuint getID() const { return this->data->getID(); } 33 35 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; }; 34 40 private: 35 41 SoundBufferData::Pointer data;
Note: See TracChangeset
for help on using the changeset viewer.