Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9806 in orxonox.OLD for branches/new_class_id/src/lib/sound


Ignore:
Timestamp:
Sep 24, 2006, 10:30:13 PM (18 years ago)
Author:
bensch
Message:

try with the shader

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

Legend:

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

    r9762 r9806  
    100100
    101101
    102     std::string         _title;
    103     std::string         _artist;
    104     std::string         _album;
    105     std::string         _vendor;
     102    std::string         _title;               //!< Song Title.
     103    std::string         _artist;              //!< Artist Name of the current song.
     104    std::string         _album;               //!< Album Name of the current song.
     105    std::string         _vendor;              //!< Vendor Name of the current song.
    106106  };
    107107
  • branches/new_class_id/src/lib/sound/sound_buffer.cc

    r9805 r9806  
    1818#include "sound_buffer.h"
    1919
     20
    2021namespace OrxSound
    2122{
     23  ObjectListDefinition(SoundBuffer);
    2224  //////////////////
    2325  /* SOUND-BUFFER */
     
    2628      : data(new SoundBufferData)
    2729  {
     30    this->registerObject(this, SoundBuffer::_objectList);
    2831  }
    2932  /**
     
    3437      : data(new SoundBufferData)
    3538  {
     39    this->registerObject(this, SoundBuffer::_objectList);
    3640    this->load(fileName);
    3741  }
     
    3943  SoundBuffer::SoundBuffer(const SoundBuffer& buffer)
    4044      : data(buffer.data)
    41   {  }
     45  {
     46    this->registerObject(this, SoundBuffer::_objectList);
     47  }
    4248
    4349  SoundBuffer::SoundBuffer(const SoundBufferData::Pointer& dataPointer)
    4450      : data(dataPointer)
    45   {  };
     51  {
     52    this->registerObject(this, SoundBuffer::_objectList);
     53  };
     54
     55  SoundBuffer::~SoundBuffer()
     56  {
     57    printf("Deleting Object of type SoundBuffer\n");
     58  }
     59
    4660}
  • branches/new_class_id/src/lib/sound/sound_buffer.h

    r9805 r9806  
    77#define _SOUND_BUFFER_H
    88
     9#include "base_object.h"
    910#include "sound_buffer_data.h"
    1011
     
    1213{
    1314  //! A class that represents a datastructure to play Sounds.
    14   class SoundBuffer
     15  class SoundBuffer : virtual public BaseObject
    1516  {
     17    ObjectListDeclaration(SoundBuffer);
    1618  public:
    1719    SoundBuffer();
     
    1921    SoundBuffer(const SoundBufferData::Pointer& dataPointer);
    2022    SoundBuffer(const std::string& fileName);
     23    virtual ~SoundBuffer();
    2124
    2225    bool operator==(const SoundBuffer& buffer) const {return this->data == buffer.data; };
Note: See TracChangeset for help on using the changeset viewer.