Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/lib/sound/sound_buffer.cc @ 9810

Last change on this file since 9810 was 9810, checked in by bensch, 18 years ago

SoundBuffer register's itself again. Everything as normal as earlier that day :)

File size: 1.3 KB
RevLine 
[4744]1/*
[1853]2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
[1855]10
11   ### File Specific:
[5386]12   main-programmer: Benjamin Grauer
[1855]13   co-programmer: ...
[1853]14*/
15
[5386]16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_SOUND
[1853]17
[5386]18#include "sound_buffer.h"
[1853]19
[9806]20
[7460]21namespace OrxSound
[3365]22{
[9806]23  ObjectListDefinition(SoundBuffer);
[7460]24  //////////////////
25  /* SOUND-BUFFER */
26  //////////////////
[9803]27  SoundBuffer::SoundBuffer()
[9805]28      : data(new SoundBufferData)
[9803]29  {
[9810]30    this->registerObject(this, SoundBuffer::_objectList);
[9803]31  }
[7460]32  /**
[9803]33   * @brief Creates a Soundbuffer out of an inputfile
[7460]34   * @param fileName The name of the File
35   */
36  SoundBuffer::SoundBuffer(const std::string& fileName)
[9805]37      : data(new SoundBufferData)
[7460]38  {
[9810]39    this->registerObject(this, SoundBuffer::_objectList);
[9803]40    this->load(fileName);
[7460]41  }
[9805]42
43  SoundBuffer::SoundBuffer(const SoundBuffer& buffer)
44      : data(buffer.data)
[9806]45  {
[9810]46    this->registerObject(this, SoundBuffer::_objectList);
[9806]47  }
[9805]48
49  SoundBuffer::SoundBuffer(const SoundBufferData::Pointer& dataPointer)
50      : data(dataPointer)
[9806]51  {
[9810]52    this->registerObject(this, SoundBuffer::_objectList);
[9806]53  };
54
55  SoundBuffer::~SoundBuffer()
56  {
57  }
58
[3543]59}
Note: See TracBrowser for help on using the repository browser.