Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 24, 2006, 3:21:12 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: SoundSource completely added as a Resource

File:
1 edited

Legend:

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

    r9804 r9805  
    2020namespace OrxSound
    2121{
    22   ObjectListDefinition(SoundBuffer);
    2322  //////////////////
    2423  /* SOUND-BUFFER */
    2524  //////////////////
    2625  SoundBuffer::SoundBuffer()
    27   : data(new SoundBufferData)
     26      : data(new SoundBufferData)
    2827  {
    29     this->registerObject(this, SoundBuffer::_objectList);
    3028  }
    3129  /**
     
    3432   */
    3533  SoundBuffer::SoundBuffer(const std::string& fileName)
    36   : data(new SoundBufferData)
     34      : data(new SoundBufferData)
    3735  {
    38     this->registerObject(this, SoundBuffer::_objectList);
    39     this->setName(fileName);
    40 
    4136    this->load(fileName);
    4237  }
     38
     39  SoundBuffer::SoundBuffer(const SoundBuffer& buffer)
     40      : data(buffer.data)
     41  {  }
     42
     43  SoundBuffer::SoundBuffer(const SoundBufferData::Pointer& dataPointer)
     44      : data(dataPointer)
     45  {  };
    4346}
Note: See TracChangeset for help on using the changeset viewer.