Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/adm/src/lib/sound/sound_buffer.cc @ 10675

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

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 1.3 KB
Line 
1/*
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.
10
11   ### File Specific:
12   main-programmer: Benjamin Grauer
13   co-programmer: ...
14*/
15
16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_SOUND
17
18#include "sound_buffer.h"
19
20
21namespace OrxSound
22{
23  ObjectListDefinition(SoundBuffer);
24  //////////////////
25  /* SOUND-BUFFER */
26  //////////////////
27  SoundBuffer::SoundBuffer()
28      : data(new SoundBufferData)
29  {
30    this->registerObject(this, SoundBuffer::_objectList);
31  }
32  /**
33   * @brief Creates a Soundbuffer out of an inputfile
34   * @param fileName The name of the File
35   */
36  SoundBuffer::SoundBuffer(const std::string& fileName)
37      : data(new SoundBufferData)
38  {
39    this->registerObject(this, SoundBuffer::_objectList);
40    this->load(fileName);
41  }
42
43  SoundBuffer::SoundBuffer(const SoundBuffer& buffer)
44      : data(buffer.data)
45  {
46    this->registerObject(this, SoundBuffer::_objectList);
47  }
48
49  SoundBuffer::SoundBuffer(const SoundBufferData::Pointer& dataPointer)
50      : data(dataPointer)
51  {
52    this->registerObject(this, SoundBuffer::_objectList);
53  };
54
55  SoundBuffer::~SoundBuffer()
56  {
57  }
58
59}
Note: See TracBrowser for help on using the repository browser.